Closed hinxx closed 1 year ago
If I change the amount of the data to plot the X axis range remains unchanged. Once I double click the plot I get what I want.
I tried using ImPlotAxisFlags_AutoFit and ImPlotAxisFlags_RangeFit but the effect is desirable; I can not pan or zoom anymore.
ImPlotAxisFlags_AutoFit
ImPlotAxisFlags_RangeFit
Is there a way to achieve the resizing/fitting of the axes only when the underlaying data size changes?
Call SetNextAxisToFit or SetNextAxesToFit before BeginPlot
SetNextAxisToFit
SetNextAxesToFit
BeginPlot
Works, Thanks!
If I change the amount of the data to plot the X axis range remains unchanged. Once I double click the plot I get what I want.
I tried using
ImPlotAxisFlags_AutoFit
andImPlotAxisFlags_RangeFit
but the effect is desirable; I can not pan or zoom anymore.Is there a way to achieve the resizing/fitting of the axes only when the underlaying data size changes?