rakkar
6th October 2009, 18:09
All I want is for the endpoints of the scale to match the outliers of the input sources. So if I have inputs 0,0 and 2000,1000, then the x axis should go from 0 to 2000 and the y axis to go from 0 to 1000.
So I have the code:
qwtPlot->axisScaleEngine(QwtPlot::xBottom)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->setAxisAutoScale(QwtPlot::xBottom);
qwtPlot->setAxisAutoScale(QwtPlot::yLeft);
The x axis is OK, and matches the inputs. But the Y axis goes from 0 to 30,000???
Thanks for the help.
So I have the code:
qwtPlot->axisScaleEngine(QwtPlot::xBottom)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->setAxisAutoScale(QwtPlot::xBottom);
qwtPlot->setAxisAutoScale(QwtPlot::yLeft);
The x axis is OK, and matches the inputs. But the Y axis goes from 0 to 30,000???
Thanks for the help.