PDA

View Full Version : setAxisScale(1) doesn't do anything



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?

Uwe
19th September 2009, 10:42
Use QwtPlot::Axis enum values instead of plain integers: 1 is yRight not xBottom or xTop.

Uwe