On Sat, Apr 18, 2009 at 00:22, Andrew Romero <romero...@yahoo.com> wrote:
> The script plottest.py.txt reads the data file (out.txt) and creates the plot 
> (myfig.png); however,
> I am unable to format the dates ... they always print as floats .. help

are those unix timestamps (from 1970-01-01)?

In any case, you have to convert those in datetime objects, then

dates = list of datetime objects
mpl_dates = [matplotlib.dates.date2num(date) for date in dates]

and at the and use plot_date() instead of plot(), using mpl_dates for X axis.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to