Crate poloto[−][src]
Expand description
Plot to SVG and style with CSS
You can find poloto on github and crates.io. Documentation at docs.rs
Check out the github examples. The latest graph outputs of the examples can be found in the assets folder.
- Plots containing NaN or Infinity are ignored.
- After 8 plots, the colors cycle back and are repeated.
Macros
Shorthand for moveable_format(move |w|write!(w,...))
Similar to format_args!() except has a more flexible lifetime.
Structs
Represents one cropping.
Convert a moved closure into a impl fmt::Display.
This is useful because std’s format_args!() macro
has a shorter lifetime.
Keeps track of plots. User supplies iterators that will be iterated on when render is called.
Constants
The demsions of the svg graph [800,500].
Default dark theme
Default light theme
Traits
Convert other primitive types to f64 using this trait. Precision loss is considered acceptable, since this is just for visual human eyes.
Using Iterator::filter to filter out plots can have
undesireable effects when used with Plotter::line,
since the line will assume continuity between each plot
after the filtering has taken place.
Iterators that are passed to the Plotter plot functions must produce
items that implement this trait.
Functions
The default svg tag
Create a Plotter
Update a std::io::Write to be a std::io::Write