QCustomPlot Discussion and Comments

zoom retain position Return to overview

Hello all,
I wanted to know how to retain the zoom position when next point plots on graph .I enabled zoom in realtime plotting when i zoom it will be in zoom position but when next point plots it will be changed to normal plotting .so i want to retain that zoomed position for next plotting also.
(reference-> realtime time plotting )

in the realtime plotting it calls rescale axes and then a setRange on the xAxis. To keep the zoom level, you might want to change the call setRange on the xAxis such that it uses the previous xAxis->range().size() and thus preserves it, in calculating the new range.

I am able retain zoom position properely , but when i zoom too much the time is getting blank on yaxis on screen how to stop the user for certain zoom level after that zoom++ is disabled but zoom-- is enabled.