[−][src]Struct plotlib::page::Page
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]
P: AsRef<Path>,
Save the plot to a file.
The type of file will be based on the file extension.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,