Struct flot::Plot
[−]
[src]
pub struct Plot { /* fields omitted */ }
represents a particular plot
Methods
impl Plot
[src]
fn text(&mut self, txt: &str) -> &mut Self
[src]
add a paragrath of text below a plot.
fn html(&mut self, txt: &str) -> &mut Self
[src]
add a paragrath of HTML below a plot.
fn size(&mut self, width: u32, height: u32) -> &mut Self
[src]
the size in pixels (width,height) of the plot area
fn xaxis<'a>(&'a mut self) -> Axis<'a>
[src]
x axis object
fn yaxis<'a>(&'a mut self) -> Axis<'a>
[src]
y axis object
fn yaxis2<'a>(&'a mut self) -> Axis<'a>
[src]
second y axis object
fn points<T>(&self, label: &str, data: T) -> &mut Series where
T: IntoIterator<Item = (f64, f64)>,
[src]
T: IntoIterator<Item = (f64, f64)>,
create a data series with individual points.
The data is anything that converts to an iterator
of (f64,f64)
tuples. If label is the empty string,
don't show in legend
fn lines<T>(&self, label: &str, data: T) -> &mut Series where
T: IntoIterator<Item = (f64, f64)>,
[src]
T: IntoIterator<Item = (f64, f64)>,
create a data series joined with lines.
fn bars<T>(&self, label: &str, data: T) -> &mut Series where
T: IntoIterator<Item = (f64, f64)>,
[src]
T: IntoIterator<Item = (f64, f64)>,
create a data series with bars (histogram).
fn legend_pos(&mut self, pos: Corner) -> &mut Self
[src]
position of legend (Corner::None to hide)
fn legend<'a>(&'a mut self) -> Legend<'a>
[src]
legend object
fn grid<'a>(&'a mut self) -> Grid<'a>
[src]
grid object
fn extra_symbols(&mut self) -> &mut Self
[src]
fn markings<'a>(&'a mut self) -> Markings<'a>
[src]
object to create markings like lines and areas
fn set_option(&mut self, key: &str, subkey: &str, val: JsonValue) -> &mut Self
[src]
set any option field not exposed in this API.