QCustomPlot Discussion and Comments

Showing the same zoomed view after replottingReturn to overview

After zooming into a part of the plot and performing certain operations, replot() is called, which resets the viewing area back to the whole graph. How do I save the zoomed area (axes, I assume) and reimplement it after the re-plot?

Thanks!

Most likely you somewhere are calling rescale() and thereby resetting the axes yourself. replot() doesn't change your axis ranges.

Isso, thank you for your reply. The issue is resolved, though not by removing any obvious call of rescale() as I never call it myself explicitly. Unfortunately, I don't know what exactly caused the problem nor how I solved it, but I tried cleaning and streamlining certain parts of the code and that removed the issue.
Thanks again.