Fast and simple plotting library.
Project description
sakz
Fast and simple plotting library.
Installation
cargo add sakz
# If you're using pip:
pip install sakz
# If you're using poetry:
poetry add sakz
# If you're using uv:
uv add sakz
Usage
use sakz;
use sakz::Plot;
use rand::Rng;
fn main() {
let mut rng = rand::thread_rng();
let x: Vec<f64> = (0..100).map(|_| rng.gen_range(0.0..10.0)).collect();
let y: Vec<f64> = (0..100).map(|_| rng.gen_range(0.0..10.0)).collect();
let data = x.iter().zip(y.iter()).map(|(x, y)| (*x, *y)).collect();
let mut fig = sakz::Figure::new("Test".to_string(), 2, sakz::CoordinateSystem::Cartesian);
let mut scatter = sakz::Scatter::new_2d(data);
scatter.color("#39f").marker_size(3.0);
_ = fig.plot(&scatter);
fig.save("example.svg").unwrap();
}
This library is using Semantic Versioning.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sakz-0.1.0-py3-none-win_amd64.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-win_amd64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c5ad73a5635fdbe14a9a73d17e6919752347451c6d5b9836418dacd12f42be
|
|
| MD5 |
f58717f2359cd5898a84eeb5423abad7
|
|
| BLAKE2b-256 |
8aa08ad73cdaaae80c322aa1c95f9703540c7746aa3d44ff81ce9a0d14d9fc33
|
File details
Details for the file sakz-0.1.0-py3-none-win32.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-win32.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6238cd6694b4f069bee2b205db5a2c1c05d215d74450f37ded699641348b316
|
|
| MD5 |
55e1b739f0c3bc3be1090424deb3edaa
|
|
| BLAKE2b-256 |
d29016734745640d4eee8d3c60df899aea5d79d4a6d5fbb7fb2f78b92a1cebd5
|
File details
Details for the file sakz-0.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98f7ddabe830858d44f51c3024ed4246cb89880e253bb0e7701d5910794a8fbd
|
|
| MD5 |
1322e147c1e0106abe67c46c9fe303fd
|
|
| BLAKE2b-256 |
07936cded5f2a99918a5b9515f1c74497e1b07c44ed2d3477214830604186731
|
File details
Details for the file sakz-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eb1c6d237f5b9efeac12a5129180ea438678f936d7e1d6bfe9c2298eea1ff7a
|
|
| MD5 |
821a8458b0d88ff585fce7226de9a6a3
|
|
| BLAKE2b-256 |
80dc002fd29cfe9a4f49f7423e5ba9d17bf9bc0e37189b400f9b0fde719ec875
|
File details
Details for the file sakz-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 3.3 MB
- Tags: Python 3, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c7251316fc56273d6196954908005dc92caca283db09cd89e003c935bf36a5
|
|
| MD5 |
9b88cf2f235a4864290176a40c6a97eb
|
|
| BLAKE2b-256 |
ad019b786c4c3e857eff48b2fc66c0c1b5c5dee3285a0eb9343ed0ee5251a456
|
File details
Details for the file sakz-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ab287b08d9f162aa29984b0435d7cab6dc8f7f6e10fb856229807abe5227ca
|
|
| MD5 |
ccfce2c7f8cd3d4764124896e640d15c
|
|
| BLAKE2b-256 |
b42bf157609f9a2e40018f4c361aa40f437e46a27df50928032f8a5c37305f46
|
File details
Details for the file sakz-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: sakz-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87aa904034870cc0e75ab7a1fedf86547f9a72d98575cf92f2dbd3d1d94343d
|
|
| MD5 |
ebdddca2b75bbe169e562b419099a25e
|
|
| BLAKE2b-256 |
91c62bc0c0a326975bafdb26bf3c096edb0d45498564645588ff529b0372d90c
|