QCustomPlot Discussion and Comments

how to set an axis to have a fixed range even after chart rescale?Return to overview

Hello everyone.
The question is quite clear. how can I set a range for example (Lower=0, Upper=1) for an axis that will remain (Lower=0, Upper=1) under any circumstances, even after QCustomPlot::rescaleAxes();
Thanks in advance.

I thought there was a setBoundingRange function in QCPAxis that made it into 2.0.0, but i couldnt find it in the documentation. i know there is a section on this somewhere in the forum because i put the code into my version 1.3.

You probably mean QCPRange::bounded
in conjunction with the rangeChanged signal, will give the effect very easily.