From 019de727ba4bf07a24ce1308c44f8b25f66067b7 Mon Sep 17 00:00:00 2001 From: epezent Date: Sat, 19 Sep 2020 22:02:55 -0500 Subject: [PATCH] fix bug in demo --- implot_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot_demo.cpp b/implot_demo.cpp index b394f54..63b0aa6 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -875,7 +875,7 @@ void ShowDemoWindow(bool* p_open) { float bx[] = {1.2f,1.5f,1.8f}; float by[] = {0.25f, 0.5f, 0.75f}; - ImPlot::PlotBars("##Bars",bx,by,4,0.2); + ImPlot::PlotBars("##Bars",bx,by,3,0.2); for (int i = 0; i < 3; ++i) ImPlot::Annotate(bx[i],by[i],ImVec2(0,-5),"B[%d]=%.2f",i,by[i]); ImPlot::EndPlot();