From f1b0792cd3e239f615d4f20b9647d37594de8c56 Mon Sep 17 00:00:00 2001 From: szym-nuro Date: Thu, 26 Dec 2024 09:22:16 -0800 Subject: [PATCH] Fix MyDataGetter example after #319 (#532) --- implot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.h b/implot.h index 39c10f0..a7961c4 100644 --- a/implot.h +++ b/implot.h @@ -831,7 +831,7 @@ IMPLOT_API void SetNextAxesToFit(); // an ImPlot function post-fixed with a G (e.g. PlotScatterG). This has a slight performance // cost, but probably not enough to worry about unless your data is very large. Examples: // -// ImPlotPoint MyDataGetter(void* data, int idx) { +// ImPlotPoint MyDataGetter(int idx, void* data) { // MyData* my_data = (MyData*)data; // ImPlotPoint p; // p.x = my_data->GetTime(idx);