1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-22 18:28:53 -05:00

fix bug in demo

This commit is contained in:
epezent 2020-09-19 22:02:55 -05:00
parent 1911116b3b
commit 019de727ba

View File

@ -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();