Struct flot::Page
[−]
[src]
pub struct Page { /* fields omitted */ }
represents an HTML document containing plots
Methods
impl Page
[src]
fn new(title: &str) -> Page
[src]
create the page. If the title isn't empty then add a document header (H1) and set title
fn plot(&self, title: &str) -> &mut Plot
[src]
create a new plot. If the title isn't empty, then create a header (centered H2) for the plot
fn size(&mut self, width: u32, height: u32) -> &mut Self
[src]
the size in pixels (width,height) of all the plots.
Can be overriden with the size
method of indivdiual plots.
fn render(&self, file: &str) -> Result<()>
[src]
render the page as HTML to the given file. Warning: this must absolutely be the last call when creating Flot plots - any attempt to access plot objects after this will lead to tears.