axisScaleEngine Floating does not work as documented
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:
Code:
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.
Re: axisScaleEngine Floating does not work as documented
What are the parameter values of QwtLinearScaleEngine::autoScale for this scale ?
Uwe
Re: axisScaleEngine Floating does not work as documented
That's all the code I have. Isn't it supposed to read the values in the plot and do this automatically?
I added this but there's no change
Code:
qwtPlot
->setAxisScaleEngine
(QwtPlot::xBottom, scaleEngine
);
qwtPlot
->setAxisScaleEngine
(QwtPlot::yLeft, scaleEngine
);
qwtPlot
->setAxisAutoScale
(QwtPlot::xBottom);
qwtPlot
->axisScaleEngine
(QwtPlot::xBottom)->setMargins
(0,
0);
qwtPlot
->setAxisAutoScale
(QwtPlot::yLeft);
qwtPlot
->axisScaleEngine
(QwtPlot::yLeft)->setMargins
(0,
0);
Re: axisScaleEngine Floating does not work as documented
I asked for parameter values, that are passed at runtime to a certain method.
Uwe
Re: axisScaleEngine Floating does not work as documented
It's fixed now. I was using show() and hide() and didn't know it would adjust for that