Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QCustomPlot - scale every axis individually
kb91 last edited by
I have developed quite good working scada app.
I would like to have a feature that every graph is scalled individually.
I have tried by adding indixidual y axis for every graph, but I found difficulty later to set scale factor.
QCPAxis *ax = ui->customPlot->axisRect()->addAxis(QCPAxis::atLeft); //ax->setVisible(false); ax->setRange(INIT_Y_MIN, INIT_Y_MAX); scaleRatios.insert(scaleRatios.begin()+num,1.0); connect(ui->customPlot->yAxis, SIGNAL(rangeChanged(QCPRange)), ax, SLOT(setRange(QCPRange))); scaleAxes.insert(scaleAxes.begin()+num, ax); ui->customPlot->addGraph(axisX,ax);
Any suggestions how to solve that?