Struct criterion_plot::Figure
[−]
[src]
pub struct Figure { /* fields omitted */ }
Plot container
Methods
impl Figure
[src]
fn new() -> Figure
[src]
Creates an empty figure
fn draw(&mut self) -> Result<Child>
[src]
Spawns a drawing child process
NOTE: stderr, stdin, and stdout are piped
fn dump<W>(&mut self, sink: &mut W) -> Result<&mut Figure> where
W: Write,
[src]
W: Write,
Dumps the script required to produce the figure into sink
fn save(&self, path: &Path) -> Result<&Figure>
[src]
Saves the script required to produce the figure to path
Trait Implementations
impl<X, WM, BM, BH, WH> Plot<Candlesticks<X, WM, BM, BH, WH>> for Figure where
BH: IntoIterator,
BH::Item: Data,
BM: IntoIterator,
BM::Item: Data,
WH: IntoIterator,
WH::Item: Data,
WM: IntoIterator,
WM::Item: Data,
X: IntoIterator,
X::Item: Data,
[src]
BH: IntoIterator,
BH::Item: Data,
BM: IntoIterator,
BM::Item: Data,
WH: IntoIterator,
WH::Item: Data,
WM: IntoIterator,
WM::Item: Data,
X: IntoIterator,
X::Item: Data,
type Properties = Properties
The properties associated to the plot
fn plot<F>(
&mut self,
candlesticks: Candlesticks<X, WM, BM, BH, WH>,
configure: F
) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
&mut self,
candlesticks: Candlesticks<X, WM, BM, BH, WH>,
configure: F
) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
Plots some data
with some configuration
impl<X, Y> Plot<Curve<X, Y>> for Figure where
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
[src]
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
type Properties = Properties
The properties associated to the plot
fn plot<F>(&mut self, curve: Curve<X, Y>, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
F: FnOnce(&mut Properties) -> &mut Properties,
Plots some data
with some configuration
impl<X, Y, L, H> Plot<ErrorBar<X, Y, L, H>> for Figure where
H: IntoIterator,
H::Item: Data,
L: IntoIterator,
L::Item: Data,
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
[src]
H: IntoIterator,
H::Item: Data,
L: IntoIterator,
L::Item: Data,
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
type Properties = Properties
The properties associated to the plot
fn plot<F>(&mut self, e: ErrorBar<X, Y, L, H>, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
F: FnOnce(&mut Properties) -> &mut Properties,
Plots some data
with some configuration
impl<X, Y1, Y2> Plot<FilledCurve<X, Y1, Y2>> for Figure where
X: IntoIterator,
X::Item: Data,
Y1: IntoIterator,
Y1::Item: Data,
Y2: IntoIterator,
Y2::Item: Data,
[src]
X: IntoIterator,
X::Item: Data,
Y1: IntoIterator,
Y1::Item: Data,
Y2: IntoIterator,
Y2::Item: Data,
type Properties = Properties
The properties associated to the plot
fn plot<F>(&mut self, fc: FilledCurve<X, Y1, Y2>, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
F: FnOnce(&mut Properties) -> &mut Properties,
Plots some data
with some configuration
impl Clone for Figure
[src]
fn clone(&self) -> Figure
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Configure<Axis> for Figure
[src]
type Properties = Properties
The properties of what's being configured
fn configure<F>(&mut self, axis: Axis, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
F: FnOnce(&mut Properties) -> &mut Properties,
Configures an axis
impl Configure<Key> for Figure
[src]
type Properties = Properties
The properties of what's being configured
fn configure<F>(&mut self, _: Key, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
[src]
F: FnOnce(&mut Properties) -> &mut Properties,
Configures the key (legend)
impl Set<BoxWidth> for Figure
[src]
fn set(&mut self, width: BoxWidth) -> &mut Figure
[src]
Changes the box width of all the box related plots (bars, candlesticks, etc)
Note The default value is 0
Panics
Panics if width
is a negative value
impl Set<Font> for Figure
[src]
impl Set<FontSize> for Figure
[src]
impl Set<Output> for Figure
[src]
fn set(&mut self, output: Output) -> &mut Figure
[src]
Changes the output file
Note The default output file is output.plot
impl Set<Size> for Figure
[src]
impl Set<Terminal> for Figure
[src]
fn set(&mut self, terminal: Terminal) -> &mut Figure
[src]
Changes the output terminal
Note By default, the terminal is set to Svg