Re: [Matplotlib-users] Plotting against time

2012-06-18 Thread Clare Soh
Hi Ben, I tried including the date info into my data files as you suggested and it works! Thank you very much for help. Regards, Clare. On Mon, Jun 18, 2012 at 9:10 PM, Benjamin Root wrote: > > > On Mon, Jun 18, 2012 at 6:42 AM, Clare Soh wrote: > >> Hi, >> >> I'm trying to plot some data aga

Re: [Matplotlib-users] Plotting against time

2012-06-18 Thread Benjamin Root
On Mon, Jun 18, 2012 at 6:42 AM, Clare Soh wrote: > Hi, > > I'm trying to plot some data against time using the following code: > > r = mlab.csv2rec(filename) > self.axis.plot(r.time, r.jb_sizems) > hfmt = dates.DateFormatter('%H:%M:%S.%f') > self.a

[Matplotlib-users] Plotting against time

2012-06-18 Thread Clare Soh
Hi, I'm trying to plot some data against time using the following code: r = mlab.csv2rec(filename) self.axis.plot(r.time, r.jb_sizems) hfmt = dates.DateFormatter('%H:%M:%S.%f') self.axis.xaxis.set_major_formatter(hfmt) self.axis.set_titl