Enum gnuplot::PlotOption

source ·
pub enum PlotOption<T> {
Show 14 variants PointSymbol(char), PointSize(f64), Caption(T), LineWidth(f64), Color(T), BorderColor(T), LineStyle(DashType), FillAlpha(f64), FillRegion(FillRegionType), FillPattern(AutoOption<FillPatternType>), ArrowType(ArrowheadType), ArrowSize(f64), WhiskerBars(f64), Axes(XAxis, YAxis),
}
Expand description

An enumeration of plot options you can supply to plotting commands, governing things like line width, color and others

Variants§

§

PointSymbol(char)

Sets the symbol used for points. The valid characters are as follows:

  • . - dot
  • + - plus
  • x - cross
  • * - star
  • s - empty square
  • S - filled square
  • o - empty circle
  • O - filled circle
  • t - empty triangle
  • T - filled triangle
  • d - empty del (upside down triangle)
  • D - filled del (upside down triangle)
  • r - empty rhombus
  • R - filled rhombus
§

PointSize(f64)

Sets the size of the points. The size acts as a multiplier, with 1.0 being the default.

§

Caption(T)

Sets the caption of the plot element. Set to empty to hide it from the legend.

§

LineWidth(f64)

Sets the width of lines.

§

Color(T)

Sets the color of the plot element. The passed string can be a color name (e.g. “black” works), or an HTML color specifier (e.g. “#FFFFFF” is white). This specifies the fill color of a filled plot.

§

BorderColor(T)

Sets the color of the border of a filled plot (if it has one). The passed string can be a color name (e.g. “black” works), or an HTML color specifier (e.g. “#FFFFFF” is white).

§

LineStyle(DashType)

Sets the style of the line. Note that not all gnuplot terminals support dashed lines. See DashType for the available styles.

§

FillAlpha(f64)

Sets the transparency of a filled plot. 0.0 - fully transparent, 1.0 - fully opaque. Cannot be used with FillPattern.

§

FillRegion(FillRegionType)

Sets the fill region. See FillRegionType for the available regions.

§

FillPattern(AutoOption<FillPatternType>)

Sets the fill pattern. If left at Auto, the pattern alternates automatically. Otherwise, see FillPatternType for the available patterns. Cannot be used with FillAlpha.

§

ArrowType(ArrowheadType)

Sets what an arrowhead looks like

§

ArrowSize(f64)

Sets the size of the arrowhead. This is specified in the units of graph (i.e. 1.0 would make the arrow as big as the graph).

§

WhiskerBars(f64)

Width of the whisker bars (as a fraction of the box width) for box and whisker plots.

§

Axes(XAxis, YAxis)

Which axis pair to use for the plot element.

Trait Implementations§

source§

impl<T: Clone> Clone for PlotOption<T>

source§

fn clone(&self) -> PlotOption<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for PlotOption<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: PartialEq> PartialEq for PlotOption<T>

source§

fn eq(&self, other: &PlotOption<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd> PartialOrd for PlotOption<T>

source§

fn partial_cmp(&self, other: &PlotOption<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T: Copy> Copy for PlotOption<T>

source§

impl<T> StructuralPartialEq for PlotOption<T>

Auto Trait Implementations§

§

impl<T> Freeze for PlotOption<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for PlotOption<T>
where T: RefUnwindSafe,

§

impl<T> Send for PlotOption<T>
where T: Send,

§

impl<T> Sync for PlotOption<T>
where T: Sync,

§

impl<T> Unpin for PlotOption<T>
where T: Unpin,

§

impl<T> UnwindSafe for PlotOption<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.