Plotly for Rust

A plotting library for Rust powered by Plotly.js.
Usage
Add this to your Cargo.toml:
[dependencies]
plotly = "0.4.0"
This feature requires some manual configuration to function. For details and installation instructions
please see the plotly_orca README.
Plotly in action
extern crate plotly;
use plotly::common::Mode;
use plotly::{Plot, Scatter};
fn line_and_scatter_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<()> {
line_and_scatter_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.