#contour #points #color #contourable

contourable

A library for differentiable functions

12 releases (4 breaking)

new 0.5.0 Apr 24, 2025
0.4.0 Apr 16, 2025
0.3.0 Apr 5, 2025
0.2.0 Apr 3, 2025
0.1.7 Feb 21, 2025

#127 in Visualization

Download history 46/week @ 2025-02-12 564/week @ 2025-02-19 25/week @ 2025-02-26 19/week @ 2025-03-05 121/week @ 2025-03-12 185/week @ 2025-03-19 102/week @ 2025-03-26 306/week @ 2025-04-02 13/week @ 2025-04-09 159/week @ 2025-04-16

617 downloads per month
Used in 2 crates

MIT/Apache

71KB
1.5K SLoC

Contour-able

Contour-able is a Rust library for creating and manipulating contour plots. It provides a simple and efficient way to generate contour lines from a set of data points.

Features

  • Generate contour lines from 2D data points
  • Customize contour levels and colors
  • Efficient and easy to use

Installation

Add this to your Cargo.toml:

[dependencies]
contourable = "0.1.0"

Usage

Here is a simple example of how to use Contourable:

extern crate contourable;

use contourable::Contour;

fn main() {
    let data = vec![
        // ...your data points...
    ];
    let contour = Contour::new(data);
    let lines = contour.generate_lines();
    // ...use the generated contour lines...
}

Regenerating the data set

To regenerate the data set, you can use the generate function from grid.rs. Here is an example:

extern crate contourable;

use contourable::grid::generate;

fn main() {
    let dataset = generate(100, 100);
    // ...use the generated dataset...
}

License

This project is licensed under the MIT License or Apache-2.0.

Contribution

Contributions are welcome! Please open an issue or submit a pull request on GitLab.

Dependencies

~3.5MB
~70K SLoC