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

Function PlotShaded

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

Source from the content-addressed store, hash-verified

2280
2281template <typename T>
2282void PlotShaded(const char* label_id, const T* values, int count, double y_ref, double xscale, double x0, const ImPlotSpec& spec) {
2283 if (!(y_ref > -DBL_MAX))
2284 y_ref = GetPlotLimits(IMPLOT_AUTO,IMPLOT_AUTO).Y.Min;
2285 if (!(y_ref < DBL_MAX))
2286 y_ref = GetPlotLimits(IMPLOT_AUTO,IMPLOT_AUTO).Y.Max;
2287 GetterXY<IndexerLin,IndexerIdx<T>> getter1(IndexerLin(xscale,x0),IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),count);
2288 GetterXY<IndexerLin,IndexerConst> getter2(IndexerLin(xscale,x0),IndexerConst(y_ref),count);
2289 PlotShadedEx(label_id, getter1, getter2, spec);
2290}
2291
2292template <typename T>
2293void PlotShaded(const char* label_id, const T* xs, const T* ys, int count, double y_ref, const ImPlotSpec& spec) {

Callers 5

Demo_FilledLinePlotsFunction · 0.85
Demo_ShadedPlotsFunction · 0.85
Demo_RealtimePlotsFunction · 0.85
Demo_PerIndexColorsFunction · 0.85
Demo_LegendPopupsFunction · 0.85

Calls 4

GetPlotLimitsFunction · 0.85
IndexerLinClass · 0.85
IndexerConstClass · 0.85
PlotShadedExFunction · 0.85

Tested by

no test coverage detected