hi,
I have some questions about the QwtLinearScaleEngine,QwtLogScaleEngine,QwtTransfor m.I don't the relationship among those class clearly.I show some code to describe my question.
Fist code :
logSE->setTransformation(new QwtLogTransform());
plot
->setAxisScaleEngine
(QwtPlot::xTop,logSE
);
QwtLinearScaleEngine *logSE=new QwtLinearScaleEngine();
logSE->setTransformation(new QwtLogTransform());
plot->setAxisScaleEngine(QwtPlot::xTop,logSE);
To copy to clipboard, switch view to plain text mode
second code:
QwtLogScaleEngine *logSE=new QwtLogScaleEngine();
plot
->setAxisScaleEngine
(QwtPlot::xTop,logSE
);
QwtLogScaleEngine *logSE=new QwtLogScaleEngine();
plot->setAxisScaleEngine(QwtPlot::xTop,logSE);
To copy to clipboard, switch view to plain text mode
why are the results different?what is the difference between the two methods?I don't understand.
Thanks in advance!
Bookmarks