MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / PlotBars

Function PlotBars

Source/3rdParty/implot/implot_items.cpp:2402–2413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2400
2401template <typename T>
2402void PlotBars(const char* label_id, const T* values, int count, double bar_size, double shift, const ImPlotSpec& spec) {
2403 if (ImHasFlag(spec.Flags, ImPlotBarsFlags_Horizontal)) {
2404 GetterXY<IndexerIdx<T>,IndexerLin> getter1(IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),IndexerLin(1.0,shift),count);
2405 GetterXY<IndexerConst,IndexerLin> getter2(IndexerConst(0),IndexerLin(1.0,shift),count);
2406 PlotBarsHEx(label_id, getter1, getter2, bar_size, spec);
2407 }
2408 else {
2409 GetterXY<IndexerLin,IndexerIdx<T>> getter1(IndexerLin(1.0,shift),IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),count);
2410 GetterXY<IndexerLin,IndexerConst> getter2(IndexerLin(1.0,shift),IndexerConst(0),count);
2411 PlotBarsVEx(label_id, getter1, getter2, bar_size, spec);
2412 }
2413}
2414
2415template <typename T>
2416void PlotBars(const char* label_id, const T* xs, const T* ys, int count, double bar_size, const ImPlotSpec& spec) {

Callers 9

Demo_BarPlotsFunction · 0.85
Demo_ErrorBarsFunction · 0.85
Demo_NaNValuesFunction · 0.85
Demo_PerIndexColorsFunction · 0.85
Demo_AnnotationsFunction · 0.85
Demo_CustomStylesFunction · 0.85
Demo_LegendPopupsFunction · 0.85
PlotBarGroupsFunction · 0.85
PlotHistogramFunction · 0.85

Calls 5

ImHasFlagFunction · 0.85
IndexerLinClass · 0.85
IndexerConstClass · 0.85
PlotBarsHExFunction · 0.85
PlotBarsVExFunction · 0.85

Tested by

no test coverage detected