Originally Posted by
Uwe
I guess you have to derive from QwtScaleEngine, but probably there will be code in the implementation of QwtLogScaleEngine you have to copy out to your class as well.
I believe, that having a logarithmic scale engine, that is not limited to positive ranges would be a quite handy thing and I would like to
have such a thing in the Qwt library itself. If you are motivated to work in this direction please contact me by Email.
ciao,
Uwe
I have spent some time on this project and till now I haven't get clear with the source code write in QwtScaleEngine class.
While I set
autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const
autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const
To copy to clipboard, switch view to plain text mode
arguments x1 and x2 to negative numbers, then no curve will be plot. But I cant find where to remove this limit for negative range.
I set
linearInterval = linearInterval.limited(-LOG_MAX, LOG_MAX);
linearInterval = linearInterval.limited(-LOG_MAX, LOG_MAX);
To copy to clipboard, switch view to plain text mode
in derived class and it dose nothing.
Appreciate your help.
Bookmarks