Enum gnuplot::ContourStyle
source · pub enum ContourStyle {
Linear,
Cubic(u32),
Spline(u32, u32),
}
Expand description
Specifies how the contours are drawn
Variants§
Linear
Draw lines between points of equal value
Cubic(u32)
Draw somewhat smoother curves between points with equal value.
The argument specifies the number of points to use to approximate the curve for the final drawing step (clamped to range from 2 to 100).
Spline(u32, u32)
Draw an even smoother curve, this time approximating the locations of points with equal value (clamped to range from 2 to 100).
The first argument specifies the number of points to use to approximate the curve for the final drawing step. The second argument specifies the order of the polynomial (clamped to range from 2 to 10).
Trait Implementations§
source§impl Clone for ContourStyle
impl Clone for ContourStyle
source§fn clone(&self) -> ContourStyle
fn clone(&self) -> ContourStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContourStyle
impl Debug for ContourStyle
source§impl Ord for ContourStyle
impl Ord for ContourStyle
source§fn cmp(&self, other: &ContourStyle) -> Ordering
fn cmp(&self, other: &ContourStyle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContourStyle
impl PartialEq for ContourStyle
source§fn eq(&self, other: &ContourStyle) -> bool
fn eq(&self, other: &ContourStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContourStyle
impl PartialOrd for ContourStyle
source§fn partial_cmp(&self, other: &ContourStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &ContourStyle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ContourStyle
impl Eq for ContourStyle
impl StructuralPartialEq for ContourStyle
Auto Trait Implementations§
impl Freeze for ContourStyle
impl RefUnwindSafe for ContourStyle
impl Send for ContourStyle
impl Sync for ContourStyle
impl Unpin for ContourStyle
impl UnwindSafe for ContourStyle
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