pub struct Series { /* private fields */ }Expand description
One named data series of (x, y) points.
Implementations§
Source§impl Series
impl Series
Sourcepub fn data(self, data: impl IntoIterator<Item = (f64, f64)>) -> Self
pub fn data(self, data: impl IntoIterator<Item = (f64, f64)>) -> Self
Set the (x, y) data.
Sourcepub fn values(self, values: impl IntoIterator<Item = f64>) -> Self
pub fn values(self, values: impl IntoIterator<Item = f64>) -> Self
Plot values with x = 0, 1, 2, …
Sourcepub fn fill_gradient(self, v: Gradient) -> Self
pub fn fill_gradient(self, v: Gradient) -> Self
Color an Area fill by value (bottom = low, top = high) instead of one flat color.
Sourcepub fn y_err(self, err: impl IntoIterator<Item = f64>) -> Self
pub fn y_err(self, err: impl IntoIterator<Item = f64>) -> Self
Symmetric error bars: y ± err[i] for point i.
Sourcepub fn band(self, band: impl IntoIterator<Item = (f64, f64)>) -> Self
pub fn band(self, band: impl IntoIterator<Item = (f64, f64)>) -> Self
Confidence band: (lo, hi) y-values for point i, shaded around the line.
Sourcepub fn smooth(self, v: bool) -> Self
pub fn smooth(self, v: bool) -> Self
Smooth the line with Catmull-Rom spline interpolation (Line/Area modes).
Sourcepub fn secondary_axis(self, v: bool) -> Self
pub fn secondary_axis(self, v: bool) -> Self
Plot against the secondary (right) y axis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnsafeUnpin for Series
impl UnwindSafe for Series
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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