| Crates.io | contourable |
| lib.rs | contourable |
| version | 0.8.0 |
| created_at | 2025-02-18 15:27:18.389338+00 |
| updated_at | 2025-05-16 12:29:33.438047+00 |
| description | A library for differentiable functions |
| homepage | https://gitlab.com/youbihub/contourable |
| repository | https://gitlab.com/youbihub/contourable |
| max_upload_size | |
| id | 1560037 |
| size | 78,268 |
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.
2D data pointsAdd this to your Cargo.toml:
[dependencies]
contourable = "0.1.0"
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...
}
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...
}
This project is licensed under the MIT License or Apache-2.0.
Contributions are welcome! Please open an issue or submit a pull request on GitLab.