Skip to main content

PlotItemStyled

Trait PlotItemStyled 

Source
pub trait PlotItemStyled: Sized {
    // Required method
    fn style_mut(&mut self) -> &mut PlotItemStyle;

    // Provided methods
    fn with_style(self, style: PlotItemStyle) -> Self { ... }
    fn with_line_color(self, color: [f32; 4]) -> Self { ... }
    fn with_line_weight(self, weight: f32) -> Self { ... }
    fn with_fill_color(self, color: [f32; 4]) -> Self { ... }
    fn with_fill_alpha(self, alpha: f32) -> Self { ... }
    fn with_marker(self, marker: Marker) -> Self { ... }
    fn with_marker_size(self, size: f32) -> Self { ... }
    fn with_marker_line_color(self, color: [f32; 4]) -> Self { ... }
    fn with_marker_fill_color(self, color: [f32; 4]) -> Self { ... }
    fn with_size(self, size: f32) -> Self { ... }
}
Expand description

Shared ImPlot item-style builder methods for plot builders backed by ImPlotSpec.

Importing dear_implot::* brings this trait into scope, so every supported plot builder exposes the same styling methods.

Required Methods§

Source

fn style_mut(&mut self) -> &mut PlotItemStyle

Provided Methods§

Source

fn with_style(self, style: PlotItemStyle) -> Self

Replace the entire item style override for this plot.

Source

fn with_line_color(self, color: [f32; 4]) -> Self

Set the line color. Use the alpha channel to control line transparency.

Source

fn with_line_weight(self, weight: f32) -> Self

Set the line width in pixels.

Source

fn with_fill_color(self, color: [f32; 4]) -> Self

Set the fill color.

Source

fn with_fill_alpha(self, alpha: f32) -> Self

Set the fill alpha multiplier used for fills and marker faces.

Source

fn with_marker(self, marker: Marker) -> Self

Set the marker type.

Source

fn with_marker_size(self, size: f32) -> Self

Set the marker size in pixels.

Source

fn with_marker_line_color(self, color: [f32; 4]) -> Self

Set the marker outline color.

Source

fn with_marker_fill_color(self, color: [f32; 4]) -> Self

Set the marker fill color.

Source

fn with_size(self, size: f32) -> Self

Set the generic size field used by some plot types such as error bars and digital plots.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl PlotItemStyled for FormattedTextPlot

Source§

impl<'a, 'tex> PlotItemStyled for ImagePlot<'a, 'tex>

Source§

impl<'a> PlotItemStyled for AsymmetricErrorBarsPlot<'a>

Source§

impl<'a> PlotItemStyled for BarGroupsPlot<'a>

Source§

impl<'a> PlotItemStyled for BarGroupsPlotF32<'a>

Source§

impl<'a> PlotItemStyled for BarPlot<'a>

Source§

impl<'a> PlotItemStyled for BooleanDigitalPlot<'a>

Source§

impl<'a> PlotItemStyled for CustomLegendEntry<'a>

Source§

impl<'a> PlotItemStyled for DigitalPlot<'a>

Source§

impl<'a> PlotItemStyled for DigitalPlotF32<'a>

Source§

impl<'a> PlotItemStyled for DummyPlot<'a>

Source§

impl<'a> PlotItemStyled for ErrorBarsPlot<'a>

Source§

impl<'a> PlotItemStyled for HeatmapPlot<'a>

Source§

impl<'a> PlotItemStyled for HeatmapPlotF32<'a>

Source§

impl<'a> PlotItemStyled for Histogram2DPlot<'a>

Source§

impl<'a> PlotItemStyled for HistogramPlot<'a>

Source§

impl<'a> PlotItemStyled for InfLinesPlot<'a>

Source§

impl<'a> PlotItemStyled for LegendGroup<'a>

Source§

impl<'a> PlotItemStyled for LegendHeader<'a>

Source§

impl<'a> PlotItemStyled for LegendSeparator<'a>

Source§

impl<'a> PlotItemStyled for LinePlot<'a>

Source§

impl<'a> PlotItemStyled for MultiDummyPlot<'a>

Source§

impl<'a> PlotItemStyled for MultiTextPlot<'a>

Source§

impl<'a> PlotItemStyled for PieChartPlot<'a>

Source§

impl<'a> PlotItemStyled for PieChartPlotF32<'a>

Source§

impl<'a> PlotItemStyled for PolygonPlot<'a>

Source§

impl<'a> PlotItemStyled for PositionalBarPlot<'a>

Source§

impl<'a> PlotItemStyled for ScatterPlot<'a>

Source§

impl<'a> PlotItemStyled for ShadedBetweenPlot<'a>

Source§

impl<'a> PlotItemStyled for ShadedPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleBarGroupsPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleDigitalPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleErrorBarsPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleLinePlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleScatterPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleShadedPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleStairsPlot<'a>

Source§

impl<'a> PlotItemStyled for SimpleStemPlot<'a>

Source§

impl<'a> PlotItemStyled for StairsPlot<'a>

Source§

impl<'a> PlotItemStyled for StairsPlotF32<'a>

Source§

impl<'a> PlotItemStyled for StemPlot<'a>

Source§

impl<'a> PlotItemStyled for TextAnnotation<'a>

Source§

impl<'a> PlotItemStyled for TextPlot<'a>