[−][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
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]
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,
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, 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.
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>,