Struct criterion_plot::Figure [−][src]
Plot container
Implementations
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]
W: Write,
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]
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<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,
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,
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,
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,
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
impl Set<Title> for Figure
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,