Documentation

UI::Plot::PlotHistogram

Function

double UI::Plot::PlotHistogram(const string&in label_id, const float[]@ values, int bins = UI::Plot::Bin::Sturges, double bar_scale = 1.0, double min = 0.0, double max = 0.0, int flags = UI::Plot::HistogramFlags::None)

Plots a horizontal histogram. The largest bin count or density is returned.

string label_id

const float[]@ values

int bins

Can be a positive integer or a UI::Plot::Bin method.

double bar_scale

double min

If left unspecified, the min of values will be used as the range. Otherwise, outlier values outside of the range are not binned.

double max

If left unspecified, the max of values will be used as the range. Otherwise, outlier values outside of the range are not binned.

int flags

Returns double