[][src]Struct criterion_plot::Figure

pub struct Figure { /* fields omitted */ }

Plot container

Methods

impl Figure[src]

pub fn new() -> Figure[src]

Creates an empty figure

pub fn draw(&mut self) -> Result<Child>[src]

Spawns a drawing child process

NOTE: stderr, stdin, and stdout are piped

pub fn dump<W>(&mut self, sink: &mut W) -> Result<&mut Figure> where
    W: Write
[src]

Dumps the script required to produce the figure into sink

pub fn save(&self, path: &Path) -> Result<&Figure>[src]

Saves the script required to produce the figure to path

Trait Implementations

impl Clone for Figure[src]

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]

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]

Configures the key (legend)

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]

type Properties = Properties

The properties associated to the plot

impl<X, Y> Plot<Curve<X, Y>> for Figure where
    X: IntoIterator,
    X::Item: Data,
    Y: IntoIterator,
    Y::Item: Data
[src]

type Properties = Properties

The properties associated to the plot

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]

type Properties = Properties

The properties associated to the plot

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]

type Properties = Properties

The properties associated to the plot

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]

fn set(&mut self, font: Font) -> &mut Figure[src]

Changes the font

impl Set<FontSize> for Figure[src]

fn set(&mut self, size: FontSize) -> &mut Figure[src]

Changes the size of the font

Panics

Panics if size is a non-positive value

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]

fn set(&mut self, size: Size) -> &mut Figure[src]

Changes the figure size

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

impl Set<Title> for Figure[src]

fn set(&mut self, title: Title) -> &mut Figure[src]

Sets the title

Auto Trait Implementations

impl RefUnwindSafe for Figure

impl Send for Figure

impl Sync for Figure

impl Unpin for Figure

impl UnwindSafe for Figure

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.