James Bittner wrote:

> I am currently trying to plot a few time series numpy arrays. One of the
> issues I have been running into recently
> is how to use a ISO formatted time array as a X Axis.
> My text is formatted as '2008-10-16T00:02:02' as per
> http://comments.gmane.org/gmane.comp.graphics.veusz.general/302

Thanks for the question. Are you using new numpy style date-time arrays? 
These aren't supported yet unfortunately.

The SetData command doesn't pass the data through the usual import filters, 
so Veusz doesn't try to interpret the string as a datetime.

What you can do instead is using the ImportString command to do the 
conversion, e.g.

ImportString('mydata(date)', mydata)

Where mydata is a string containing all your data
mydata='''2008-10-16T00:01:32
2010-01-01T00:00:00
...
'''

The (date) specifies the data format, but it should autodetect this.

I hope this helps!

Jeremy



_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à