satoshi
31st December 2009, 19:49
Hi there,
It seems that QwtPlot::setAxisAutoScale(true) doesn't work if I call it after a QwtPlot::setAxisScale(...);
Example:
fPlot.setAxisScale(QwtPlot::xBottom, -6, 6);
fPlot.setAxisAutoScale(true);
If then i put x values between -1 and 1, the axis remain between -6 and 6.
Anyone knows how to resolve this problem? I must re-enable axis auto scale after setting up a manual axis scale.
Sorry for my english, hope you can understand the problem
Thanks, Dario
It seems that QwtPlot::setAxisAutoScale(true) doesn't work if I call it after a QwtPlot::setAxisScale(...);
Example:
fPlot.setAxisScale(QwtPlot::xBottom, -6, 6);
fPlot.setAxisAutoScale(true);
If then i put x values between -1 and 1, the axis remain between -6 and 6.
Anyone knows how to resolve this problem? I must re-enable axis auto scale after setting up a manual axis scale.
Sorry for my english, hope you can understand the problem
Thanks, Dario