pub struct DfPlot<'a> { /* private fields */ }Expand description
A builder produced by DataFramePlotExt::plot. Terminal methods
(line, scatter, hist, bar) consume the builder and return a fully
built Figure, ready to .save(...) via the umbrella crate’s FigureExt.
Implementations§
Source§impl DfPlot<'_>
impl DfPlot<'_>
Sourcepub fn size(self, width: u32, height: u32) -> Self
pub fn size(self, width: u32, height: u32) -> Self
Sets the output figure size in pixels (default 800x600).
Sourcepub fn color_by(self, column: &str) -> Self
pub fn color_by(self, column: &str) -> Self
Splits the data into one labelled series per distinct value of column
(categorical grouping, like seaborn hue). Applies to line/scatter.
Sourcepub fn line(self, x: &str, y: &str) -> Result<Figure, PlotError>
pub fn line(self, x: &str, y: &str) -> Result<Figure, PlotError>
Plots y against x as a line chart.
Sourcepub fn scatter(self, x: &str, y: &str) -> Result<Figure, PlotError>
pub fn scatter(self, x: &str, y: &str) -> Result<Figure, PlotError>
Plots y against x as a scatter chart.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DfPlot<'a>
impl<'a> !UnwindSafe for DfPlot<'a>
impl<'a> Freeze for DfPlot<'a>
impl<'a> Send for DfPlot<'a>
impl<'a> Sync for DfPlot<'a>
impl<'a> Unpin for DfPlot<'a>
impl<'a> UnsafeUnpin for DfPlot<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more