QCustomPlot Discussion and Comments

Automatic scaling along the Y-axisReturn to overview

Hi. How to do automatic scaling on the Y-axis based on local maximum and minimum, visible on the screen? Sorry for my English.

If you only have one rect in your QCustomPlot, and you only want the Y-axis to be scale, this can be done with something like this :

ui->yourPlot->axisRect(0)->axis(QCPAxis::atLeft)->rescale()

I have 2 rect. It doesn't work. I can use ui->customPlot->yAxis->setRange(low,high); ,but for this I need to know the visible high and low.