Documentation

UI::Plot::ColormapScale

Function

void UI::Plot::ColormapScale(const string&in label, double scale_min, double scale_max, const vec2&in size = vec2 ( ), const string&in format = "%g", int flags = UI::Plot::ColormapScaleFlags::None, Colormap cmap = UI::Plot::Colormap::Auto)

Shows a vertical color scale with linear spaced ticks using the specified color map.

string label

Use double hashes to hide label (e.g. ##NoLabel).

double scale_min

If scale_min > scale_max, the scale to color mapping will be reversed.

double scale_max

If scale_min > scale_max, the scale to color mapping will be reversed.

vec2 size

string format

int flags

UI::Plot::Colormap cmap