PDA

View Full Version : plot dates on x-axis, convert from unix?



kja
18th November 2010, 21:25
Hi,

I have two double data arrays that I am plotting using SetRawSamples. My y-axis is some values and the x-axis is the date in unix time. I was wondering if there was a way to get the x-axis to show the date in human readable terms. Should I be using something other than SetRawSamples to plot?

I was thinking I could iterate through my date arrays and convert them to human readable times, but after I did that how would I get qwt to plot those dates? I know I wouldn't be able to use setRawSamples any more.

I've been looking through the forums and it seems like qwtScaleDraw might be what I need but I really don't know where to start.
Any ideas?

Thanks!

Uwe
19th November 2010, 08:18
Check the cpuplot example.

Uwe