Crate poloto[][src]

poloto - plot to SVG and style with CSS

Usage

Check out the github examples.

  • Plots containing NaN or Infinity are ignored.
  • After 8 plots, the colors cycle back and are repeated.

Re-exports

pub use tagger;

Modules

default_tags

Contains building blocks for create the default svg an styling tags from scratch.

iter

Contains the DoubleIterator trait and three different implementers of it.

prelude

The poloto prelude.

Macros

move_format

Shorthand for moveable_format(move |w|write!(w,...)) Similar to format_args!() except has a more flexible lifetime.

Structs

DataBuilder

Insert svg data after the svg element, but before the plot elements.

Plotter

Keeps track of plots. User supplies iterators that will be iterated on when render is called.

PlotterBuilder

If plot isn’t good enough, use this struct for more control.

StyleBuilder

Create a custom style poloto style

Traits

Names

Used internally to write out the header/title/xname/yname.

Functions

concatenate_display

Concatenate two display objects with the specified spacing inbetween.

moveable_format

Convert a moved closure into a impl fmt::Display. This is useful because std’s format_args!() macro has a shorter lifetime.

plot

Convenience function for PlotterBuilder with default css tag, and with svg tag. In most cases, these defaults are good enough.