pub struct Plot { /* private fields */ }Expand description
A high-level, image-backed plot builder.
Implementations§
Source§impl Plot
impl Plot
Sourcepub fn margins(self, horizontal: usize, vertical: usize) -> Self
pub fn margins(self, horizontal: usize, vertical: usize) -> Self
Sets horizontal and vertical plot-area margins in pixels.
Sourcepub fn line(self, points: &[(f64, f64)], style: LineStyle) -> Self
pub fn line(self, points: &[(f64, f64)], style: LineStyle) -> Self
Adds a connected line series to the plot.
Sourcepub fn markers(self, points: &[(f64, f64)], style: MarkerStyle) -> Self
pub fn markers(self, points: &[(f64, f64)], style: MarkerStyle) -> Self
Adds a marker-based series to the plot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plot
impl RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnsafeUnpin for Plot
impl UnwindSafe for Plot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more