DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DynExpUI::PlotColors Namespace Reference

Colors for plotting. More...

Functions

constexpr const std::vector< QColor > & GetColors ()
 Returns the plot color cycle list.
 
constexpr QColor ColorFromIndex (size_t Index)
 Returns the plot color from the cycle list to be assigned to the plot with index Index.
 

Detailed Description

Colors for plotting.

Function Documentation

◆ ColorFromIndex()

constexpr QColor DynExpUI::PlotColors::ColorFromIndex ( size_t  Index)
constexpr

Returns the plot color from the cycle list to be assigned to the plot with index Index.

Parameters
IndexPlot index
Returns
Color from GetColors() corresponding to the given index. If Index exceeds the size of the color cycle list, cycling through the list is repeated.

Definition at line 147 of file DynExpDefinitions.h.in.

◆ GetColors()

constexpr const std::vector< QColor > & DynExpUI::PlotColors::GetColors ( )
constexpr

Returns the plot color cycle list.

Returns
Each entry of the returned list represents a plot color.

Definition at line 123 of file DynExpDefinitions.h.in.