pub enum PlotOption<T> {
Show 15 variants
PointSymbol(char),
PointSize(f64),
Caption(T),
LineWidth(f64),
Color(ColorType<T>),
BorderColor(ColorType<T>),
LineStyle(DashType),
FillAlpha(f64),
FillRegion(FillRegionType),
FillPattern(AutoOption<FillPatternType>),
ArrowType(ArrowheadType),
ArrowSize(f64),
WhiskerBars(f64),
Axes(XAxis, YAxis),
BoxWidth(Vec<f64>),
}
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+
- plusx
- cross*
- stars
- empty squareS
- filled squareo
- empty circleO
- filled circlet
- empty triangleT
- filled triangled
- empty del (upside down triangle)D
- filled del (upside down triangle)r
- empty rhombusR
- 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(ColorType<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(ColorType<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.
BoxWidth(Vec<f64>)
Box width set per box for box plots: each element is the width of one box
Trait Implementations§
Source§impl<T: Clone> Clone for PlotOption<T>
impl<T: Clone> Clone for PlotOption<T>
Source§fn clone(&self) -> PlotOption<T>
fn clone(&self) -> PlotOption<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more