pub enum PlotOption {
Caption(String),
Color(TermColor),
LineStyle(DashType),
LineWidth(u32),
PointSymbol(PointSymbol),
Axes(AxisPair),
BorderColor(TermColor),
BoxWidth(f64),
ColorMap(ColorMapType),
ContourLevels(usize),
}Expand description
Per-series plot options.
§Examples
use ploot::{PlotOption, DashType};
use ploot::canvas::color::TermColor;
let opts = [
PlotOption::Caption("temperature".into()),
PlotOption::Color(TermColor::Red),
PlotOption::LineStyle(DashType::Dash),
];Variants§
Caption(String)
Series label shown in legend.
Color(TermColor)
Series color (overrides auto palette).
LineStyle(DashType)
Dash pattern for lines.
LineWidth(u32)
Line width (1 = normal, 2+ = denser dash patterns).
PointSymbol(PointSymbol)
Point marker symbol.
Axes(AxisPair)
Which axis pair to plot against.
BorderColor(TermColor)
Border color for boxes.
BoxWidth(f64)
Box width as fraction of spacing (0.0-1.0).
ColorMap(ColorMapType)
Colormap for heatmap/surface rendering.
ContourLevels(usize)
Number of auto-generated contour levels.
Trait Implementations§
Source§impl Clone for PlotOption
impl Clone for PlotOption
Source§fn clone(&self) -> PlotOption
fn clone(&self) -> PlotOption
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PlotOption
impl RefUnwindSafe for PlotOption
impl Send for PlotOption
impl Sync for PlotOption
impl Unpin for PlotOption
impl UnsafeUnpin for PlotOption
impl UnwindSafe for PlotOption
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