Is there any way to set the axis range automatically?
As shown in many of the demos: QCustomPlot::rescaleAxes() or QCPAxis::rescale() or QCPGraph::rescaleAxes() :)
QCustomPlot::rescaleAxes()
QCPAxis::rescale()
QCPGraph::rescaleAxes()