2 Attachment(s)
QwtPlot setAxisScale() is not displaying values below 1e-12 on yScale
Hello,
I am using a QwtPlot widget from latest example which is available on Git with Qt 4.8, which I modified it slightly to use LogScale engine to display the yLeft axis. I want minimum value of log scale to be 1e-30 where in the documentation it is mentioned that 1e-150 is the minimum value. But whenever I set less than 1e-12, it shows zeros in the scale (attached in the image).
QwtLogScaleEngine* axesy = new QwtLogScaleEngine();
plot->setAxisScaleEngine(QwtPlot::yLeft, axesy);
plot->setAxisScale(QwtPlot::yLeft, 1e-30, 1e-5);
Attachment 12685
After changing minimum value to 1e-12
plot->setAxisScale(QwtPlot::yLeft, 1e-12, 1e-5); it will display the scale correctly.
Attachment 12686
Is there any thing to be done inside the QwtPlot widget? or am I missing something?
Thanks,
Saket
Re: QwtPlot setAxisScale() is not displaying values below 1e-12 on yScale
I would expect to find the reason for the problem in:
Code:
{
return QLocale().
toString( value
);
}
Uwe