Enum implot::PlotColorElement[][src]

#[repr(u32)]
pub enum PlotColorElement {
Show 24 variants Line, Fill, MarkerOutline, MarkerFill, ErrorBar, FrameBg, PlotBg, PlotBorder, LegendBackground, LegendBorder, LegendText, TitleText, InlayText, XAxis, XAxisGrid, YAxis, YAxisGrid, YAxis2, YAxisGrid2, YAxis3, YAxisGrid3, Selection, Crosshairs, Query,
}
Expand description

Colorable plot elements. These are called “ImPlotCol” in ImPlot itself, but I found that name somewhat confusing because we are not referring to colors, but which thing can be colored - hence I added the “Element”.

Variants

Line

Plot line/outline color (defaults to next unused color in current colormap)

Fill

Plot fill color for bars (defaults to the current line color)

MarkerOutline

Marker outline color (defaults to the current line color)

MarkerFill

Marker fill color (defaults to the current line color)

ErrorBar

Error bar color (defaults to text color)

FrameBg

Plot frame background color (defaults to FRAME_BG)

PlotBg

Plot area background color (defaults to WINDOW_BG)

PlotBorder

Plot area border color (defaults to text color)

LegendBackground

Legend background color (defaults to ImGuiCol_PopupBg)

LegendBorder

Legend border color (defaults to ImPlotCol_PlotBorder)

LegendText

Legend text color (defaults to ImPlotCol_InlayText)

TitleText

Plot title text color (defaults to ImGuiCol_Text)

InlayText

Color of text appearing inside of plots (defaults to ImGuiCol_Text)

XAxis

X-axis label and tick lables color (defaults to ImGuiCol_Text)

XAxisGrid

X-axis grid color (defaults to 25% ImPlotCol_XAxis)

YAxis

Y-axis label and tick labels color (defaults to ImGuiCol_Text)

YAxisGrid

Y-axis grid color (defaults to 25% ImPlotCol_YAxis)

YAxis2

2nd y-axis label and tick labels color (defaults to ImGuiCol_Text)

YAxisGrid2

2nd y-axis grid/label color (defaults to 25% ImPlotCol_YAxis2)

YAxis3

3rd y-axis label and tick labels color (defaults to ImGuiCol_Text)

YAxisGrid3

3rd y-axis grid/label color (defaults to 25% ImPlotCol_YAxis3)

Selection

Box-selection color (defaults to yellow)

Crosshairs

crosshairs color (defaults to ImPlotCol_PlotBorder)

Query

Box-query color (defaults to green)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.