Skip to main content

Fast and simple plotting library.

Project description

sakz

Test status License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sakz-0.1.0-py3-none-win_amd64.whl (2.5 MB view details)

Uploaded Python 3Windows x86-64

sakz-0.1.0-py3-none-win32.whl (2.4 MB view details)

Uploaded Python 3Windows x86

sakz-0.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (3.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

sakz-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

sakz-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (3.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

sakz-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

sakz-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Hashes for sakz-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c2c5ad73a5635fdbe14a9a73d17e6919752347451c6d5b9836418dacd12f42be
MD5 f58717f2359cd5898a84eeb5423abad7
BLAKE2b-256 8aa08ad73cdaaae80c322aa1c95f9703540c7746aa3d44ff81ce9a0d14d9fc33

See more details on using hashes here.

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

Hashes for sakz-0.1.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b6238cd6694b4f069bee2b205db5a2c1c05d215d74450f37ded699641348b316
MD5 55e1b739f0c3bc3be1090424deb3edaa
BLAKE2b-256 d29016734745640d4eee8d3c60df899aea5d79d4a6d5fbb7fb2f78b92a1cebd5

See more details on using hashes here.

File details

Details for the file sakz-0.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for sakz-0.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 98f7ddabe830858d44f51c3024ed4246cb89880e253bb0e7701d5910794a8fbd
MD5 1322e147c1e0106abe67c46c9fe303fd
BLAKE2b-256 07936cded5f2a99918a5b9515f1c74497e1b07c44ed2d3477214830604186731

See more details on using hashes here.

File details

Details for the file sakz-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for sakz-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 7eb1c6d237f5b9efeac12a5129180ea438678f936d7e1d6bfe9c2298eea1ff7a
MD5 821a8458b0d88ff585fce7226de9a6a3
BLAKE2b-256 80dc002fd29cfe9a4f49f7423e5ba9d17bf9bc0e37189b400f9b0fde719ec875

See more details on using hashes here.

File details

Details for the file sakz-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sakz-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 31c7251316fc56273d6196954908005dc92caca283db09cd89e003c935bf36a5
MD5 9b88cf2f235a4864290176a40c6a97eb
BLAKE2b-256 ad019b786c4c3e857eff48b2fc66c0c1b5c5dee3285a0eb9343ed0ee5251a456

See more details on using hashes here.

File details

Details for the file sakz-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for sakz-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 82ab287b08d9f162aa29984b0435d7cab6dc8f7f6e10fb856229807abe5227ca
MD5 ccfce2c7f8cd3d4764124896e640d15c
BLAKE2b-256 b42bf157609f9a2e40018f4c361aa40f437e46a27df50928032f8a5c37305f46

See more details on using hashes here.

File details

Details for the file sakz-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sakz-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b87aa904034870cc0e75ab7a1fedf86547f9a72d98575cf92f2dbd3d1d94343d
MD5 ebdddca2b75bbe169e562b419099a25e
BLAKE2b-256 91c62bc0c0a326975bafdb26bf3c096edb0d45498564645588ff529b0372d90c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page