Simple howto for a dates on a QwtPlot axis, and howto stop ticks when plot stops?
Firstly, apologies. I know there are a lot of threads on date/time scales.
But I believe I have read them all, and I still don't know how to do it. I know it has something to do with the setAxisScale methods, but I can't figure it out. Utter newbie.
If someone could briefly outline how to show dates rather than integers along the x axis of a QwtPlot, I would be very grateful. Just point me in the right direction. If your answer says I have to subclass QwtPlot, I will be grateful, but sad. Subclassing is still in my "too hard" basket, though I hope to get there soon.
And also (while I am begging for help) how do you stop an axis adding empty ticks to the end, as (I gather) the scale engine does when it is rounding up the number of data points? I want my axis to end with the data, rather than end on a nice round number.
Thanks
John
Re: Simple howto for a dates on a QwtPlot axis, and howto stop ticks when plot stops?
Quote:
Subclassing is still in my "too hard" basket, though I hope to get there soon.
Trying to write code in a OO language without knowing the very basic OO concepts is not a good idea. Without subclassing you will fail when you try to implement a Qwt/Qt application.
Quote:
I want my axis to end with the data, rather than end on a nice round number.
QwtScaleEngine::Floating, see http://qwt.sourceforge.net/class_qwt...e005960f35b3b7
Uwe