[][src]Struct plotlib::page::Page

pub struct Page<'a> { /* fields omitted */ }

A single page page laying out the views in a grid

Methods

impl<'a> Page<'a>[src]

pub fn empty() -> Self[src]

Creates an empty page container for plots to be added to

pub fn single(view: &'a dyn View) -> Self[src]

Creates a plot containing a single view

pub fn dimensions(self, x: u32, y: u32) -> Self[src]

Set the dimensions of the plot.

pub fn add_plot(self, view: &'a dyn View) -> Self[src]

Add a view to the plot

pub fn to_svg(&self) -> Result<Document, Error>[src]

Render the plot to an svg document

pub fn to_text(&self) -> Result<String, Error>[src]

Render the plot to an String

pub fn save<P>(&self, path: P) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

Save the plot to a file.

The type of file will be based on the file extension.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Page<'a>

impl<'a> !Send for Page<'a>

impl<'a> !Sync for Page<'a>

impl<'a> Unpin for Page<'a>

impl<'a> !UnwindSafe for Page<'a>

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, 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.