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

Function PlotStems

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

Source from the content-addressed store, hash-verified

2657
2658template <typename T>
2659void PlotStems(const char* label_id, const T* values, int count, double ref, double scale, double start, const ImPlotSpec& spec) {
2660 if (ImHasFlag(spec.Flags, ImPlotStemsFlags_Horizontal)) {
2661 GetterXY<IndexerIdx<T>,IndexerLin> get_mark(IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),IndexerLin(scale,start),count);
2662 GetterXY<IndexerConst,IndexerLin> get_base(IndexerConst(ref),IndexerLin(scale,start),count);
2663 PlotStemsEx(label_id, get_mark, get_base, spec);
2664 }
2665 else {
2666 GetterXY<IndexerLin,IndexerIdx<T>> get_mark(IndexerLin(scale,start),IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),count);
2667 GetterXY<IndexerLin,IndexerConst> get_base(IndexerLin(scale,start),IndexerConst(ref),count);
2668 PlotStemsEx(label_id, get_mark, get_base, spec);
2669 }
2670}
2671
2672template <typename T>
2673void PlotStems(const char* label_id, const T* xs, const T* ys, int count, double ref, const ImPlotSpec& spec) {

Callers 3

Demo_StemPlotsFunction · 0.85
Demo_PerIndexColorsFunction · 0.85
Demo_AutoFittingDataFunction · 0.85

Calls 4

ImHasFlagFunction · 0.85
IndexerLinClass · 0.85
IndexerConstClass · 0.85
PlotStemsExFunction · 0.85

Tested by

no test coverage detected