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
->setAxisAutoScale
(QwtPlot::xBottom);
qwtPlot
->setAxisAutoScale
(QwtPlot::yLeft);
qwtPlot->axisScaleEngine(QwtPlot::xBottom)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating,true);
qwtPlot->setAxisAutoScale(QwtPlot::xBottom);
qwtPlot->setAxisAutoScale(QwtPlot::yLeft);
To copy to clipboard, switch view to plain text mode
The x axis is OK, and matches the inputs. But the Y axis goes from 0 to 30,000???
Thanks for the help.
Bookmarks