This works fine to update the vertical axis
qwtPlot->setAxisScale(0,yAxisMinSpinBox->value(),yAxisMaxSpinBox->value());
qwtPlot->replot();
qwtPlot->setAxisScale(0,yAxisMinSpinBox->value(),yAxisMaxSpinBox->value());
qwtPlot->replot();
To copy to clipboard, switch view to plain text mode
This doesn't do anything
qwtPlot->setAxisScale(1,xAxisMinSpinBox->value(),xAxisMaxSpinBox->value());
qwtPlot->replot();
qwtPlot->setAxisScale(1,xAxisMinSpinBox->value(),xAxisMaxSpinBox->value());
qwtPlot->replot();
To copy to clipboard, switch view to plain text mode
Doesn't matter what I pass for xAxisMinSpinBox and xAxisMaxSpinBox for axis 1, just doesn't do anything.
How can I adjust the horizontal axis?
Bookmarks