Change of labeling intervals for x-axis
2011-12-04 12:38:19 GMT
Hi there,
I am using QwtPlot for plotting curves with x-values in seconds. It would be nice to display the label in hh:mm:ss format. The cpuplot example presents some guidelines on how to do. This is certainly a good start.
However, it shows also what I want to avoid. The labels drawn are:
|
1 2 3 4 |
02:38:46 02:38:56 02:39:06 ... |
It would be more logical to plot instead:
|
1 2 3 4 |
02:38:40 02:38:50 02:39:00 ... |
or for larger intervals:
|
1 2 3 4 |
02:30:00 02:40:00 02:50:00 ... |
I guess it must be handled somehow in qwt_scale_engine and qwt_interval, but without detailed background on the implementation it is a bit of a pain to understand. Can someone explain how to change the label values showing more reasonable numbers for plotting in such a case?
Or much better is it already implemented and I could not find?
Thanks in advance
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
_______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest
RSS Feed