QCustomPlot Discussion and Comments

Rescale value axis, keep minimum at 0Return to overview


I use a live graph and do rescale the axis with plot->rescaleAxes().
Is there a way to have a fixed minimum of the value axis and an auto maximum.
The minimum should be fixed to 0 and the maximum should be auto recaled. Do I need to find the maximum value in the graph data on my own and set the value axis range by plot->setRange(0, ymax)?

Just do rescaleAxes and then directly after that check whether the lower bound is below zero and if so, set it to zero.

thank you! :)