pub struct StyleSpec {
pub color: Option<StyleColor>,
pub marker: Option<MarkerKind>,
pub linestyle: LinestyleKind,
pub line_width: Option<f32>,
pub marker_size: Option<u32>,
}Expand description
Combined plot style parsed from a MATLAB-style format string.
Fields§
§color: Option<StyleColor>Optional override color; None uses the series default.
marker: Option<MarkerKind>Optional marker symbol; None draws no marker.
linestyle: LinestyleKindLine style; defaults to LinestyleKind::Solid.
line_width: Option<f32>Stroke width in pixels; None falls back to the session or hardcoded default (1).
marker_size: Option<u32>Marker radius in pixels; None falls back to the session or hardcoded default (3).
Trait Implementations§
impl StructuralPartialEq for StyleSpec
Auto Trait Implementations§
impl Freeze for StyleSpec
impl RefUnwindSafe for StyleSpec
impl Send for StyleSpec
impl Sync for StyleSpec
impl Unpin for StyleSpec
impl UnsafeUnpin for StyleSpec
impl UnwindSafe for StyleSpec
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