time axis

Hi,

Been reading the docs but couldn't find an easy solution for this one ...

I've got a dataset containing dates and measurement (['2006-12-26 00:00:10','2006-12-26 00:00:20',...], [10.1722,7.99665,...]). Converting dates using time.strptime, datetime and date2num I end up with this dataset ([732671.000116,732671.000231,...],[10.1722,7.99665,...])

Question now is - how can I plot this set with x-axis ticks showing '00:00:00','00:00:10' and so on? The dataset spans 24 hours of measurements - how, if at all possible, do I specify major ticks for every 6 hour?

Help is much appreciated!

regards,
Sture

Sture

Did you look in the mail archive - there is a thread titled:
" x-axis Label in hh:mm:ss format"
which addresses this.

Derek

Sture Lygren <sture@...1466...> 2007/02/12 12:14:26 PM >>>

Hi,

Been reading the docs but couldn't find an easy solution for this one
...

I've got a dataset containing dates and measurement (['2006-12-26
00:00:10','2006-12-26 00:00:20',...], [10.1722,7.99665,...]).
Converting
dates using time.strptime, datetime and date2num I end up with this
dataset ([732671.000116,732671.000231,...],[10.1722,7.99665,...])

Question now is - how can I plot this set with x-axis ticks showing
'00:00:00','00:00:10' and so on? The dataset spans 24 hours of
measurements - how, if at all possible, do I specify major ticks for
every 6 hour?

Help is much appreciated!

regards,
Sture

ยทยทยท

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
CallCentre@...1230...

This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.