QCustomPlot Discussion and Comments

After zoom out plot scrolls if...Return to overview

Stuck with QT5 so using latest QCustomplot for QT5

I have an issue, if I zoom in my plot with the mouse wheel and then zoom out with the mouse wheel
when I am fully zoomed out and additional mouse wheel "zoom out" will start scrolling the plot.

This started when I added a: y->setScaleRatio(x, 1.06); to the Y axis slot associated with the

SIGNAL(rangeChanged(QCPRange, QCPRange))

I did this because QCustomPlot changes the Y axis scale/ratio upon zoom which caused the Y axis
to compact after zooming in (on the next data update).

So I need to have the Y axis not change scale/ratio upon zooming AND I need the plot not to scroll
after zooming out with the mouse wheel. But they seem mutually exclusive.

Any advice would be greatly appreciated.

In addition...

Maybe scroll is the wrong term, the plot does not have a scroll bar. The data in the plot
just starts shifting up like I was scrolling...