[Matplotlib-users] Converting dates into a suitable format for MatPlotLib

Michael Morrone mikem at oceanweather.com
Thu Jan 12 18:03:59 EST 2017


Hello,

 

I have a series of dates of the form (YYYY, mm, dd, (hh/24)) as output from
the module jd2gcal.  hh/24 = the fractional part of a day represented as a
decimal, i.e. 12/24 = 0.5 so my data would look like this for December 21,
2015 at 12:00 UTC:

 

                (2015, 12, 21, 0.5)

 

Is there a way to convert the above string into a date format suitable for
plotting in MatPlotLib?  There doesn't seem to be a format representation
for a fractional day in Python as far as I can tell.  I'm a newbie, so type
slowly. J

 

Many thanks for any assistance!

 

Regards,

Mike

 

Michael Morrone

Meteorologist

Oceanweather, Inc.

mikem at oceanweather.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170112/775ead89/attachment.html>


More information about the Matplotlib-users mailing list