Plotly for Rust Crate Documentation Minimum Rust version: 1.31

A plotting library for Rust powered by Plotly.js.

Usage

Add this to your Cargo.toml:

toml [dependencies] plotly = "0.4.1"

Plotly in action

```rust extern crate plotly; use plotly::common::Mode; use plotly::{Plot, Scatter};

fn lineandscatter_plot() { let trace1 = Scatter::new(vec![1, 2, 3, 4], vec![10, 15, 13, 17]) .name("trace1") .mode(Mode::Markers); let trace2 = Scatter::new(vec![2, 3, 4, 5], vec![16, 5, 11, 9]) .name("trace2") .mode(Mode::Lines); let trace3 = Scatter::new(vec![1, 2, 3, 4], vec![12, 9, 15, 12]).name("trace3");

let mut plot = Plot::new();
plot.add_trace(trace1);
plot.add_trace(trace2);
plot.add_trace(trace3);
plot.show();

}

fn main() -> std::io::Result<()> { lineandscatter_plot(); Ok(()) } ```

For more examples and more detailed installation instructions please see README.

License

Plotly for Rust is distributed under the terms of both the MIT license.

See LICENSE-MIT, and COPYRIGHT for details.