Closed denniskb closed 1 year ago
Also, adding this code to an existing application with an existing imgui.ini
file works fine. But when I delete imgui.ini
, the app crashes with
Assertion failed: ((gp.CurrentPlot != nullptr) && "PlotX() needs to be called between BeginPlot() and EndPlot()!"), function BeginItem, file implot_items.cpp, line 397.
The first issue was resolved by passing ImPlotCond_Always
. The second one by wrapping the ImPlot::BeginPlot()
call inside an if
.
My code:
The axes limits do not update as I move the slider, they remain at the initial value of
X
.