rakkar
19th September 2009, 01:22
This works fine to update the vertical axis
qwtPlot->setAxisScale(0,yAxisMinSpinBox->value(),yAxisMaxSpinBox->value());
qwtPlot->replot();
This doesn't do anything
qwtPlot->setAxisScale(1,xAxisMinSpinBox->value(),xAxisMaxSpinBox->value());
qwtPlot->replot();
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?
qwtPlot->setAxisScale(0,yAxisMinSpinBox->value(),yAxisMaxSpinBox->value());
qwtPlot->replot();
This doesn't do anything
qwtPlot->setAxisScale(1,xAxisMinSpinBox->value(),xAxisMaxSpinBox->value());
qwtPlot->replot();
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?