| 2280 | |
| 2281 | template <typename T> |
| 2282 | void 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 | |
| 2292 | template <typename T> |
| 2293 | void PlotShaded(const char* label_id, const T* xs, const T* ys, int count, double y_ref, const ImPlotSpec& spec) { |
no test coverage detected