Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-18 Thread John Hunter
On Fri, Apr 17, 2009 at 5:22 PM, Andrew Romero 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 > > the files plottest.py.txt, out.txt and myfig.png are attached

Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-18 Thread Sandro Tosi
On Sat, Apr 18, 2009 at 04:41, Andrew Romero wrote: >> are those unix timestamps (from 1970-01-01)? > > They were generated in another script using python > str(time.time()) > > >> In any case, you have to convert those in datetime objects > > Is this done with > datetime.fromtimestamp(timestamp[,

Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-17 Thread Sandro Tosi
On Sat, Apr 18, 2009 at 00:22, Andrew Romero 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 hav