Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Gökhan Sever
On Thu, Nov 10, 2011 at 11:14 AM, Joe Kington wrote: > > >> Although, this doesn't give me millisecond precision. Is there any way to >> get ms precision via datetime module? >> > > > Well, datetime objects, matplotlib's internal float dates, and numpy > datetime64 objects all support microsec

Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Joe Kington
> Although, this doesn't give me millisecond precision. Is there any way to > get ms precision via datetime module? > Well, datetime objects, matplotlib's internal float dates, and numpy datetime64 objects all support microsecond resolution. However matplotlib's locator rules can't handle mic

Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Gökhan Sever
Thanks Joe, I forgot to convert my numeric time array into a form that mpl can understand. I198 time O198 array([ 32643.78595805, 32643.82032609, 32643.85445309, ..., 32871.46535802, 32871.49946594, 32871.53384495]) I199 ncnt O199 array([0001-01-01 09:04:03+00:00, 0001-01-01 09:04:03

Re: [Matplotlib-users] Time axis for imshow

2011-11-10 Thread Joe Kington
On Wed, Nov 9, 2011 at 11:45 PM, Gökhan Sever wrote: > Hello, > > Is there any easy way to specify a time-axis using imshow to plot 2D data? > > Sure, just call "ax.xaxis_date()" (or "yaxis_date", depending on which axis you want to represent a date). As a quick example: import matplotlib.pyplo

[Matplotlib-users] Time axis for imshow

2011-11-09 Thread Gökhan Sever
Hello, Is there any easy way to specify a time-axis using imshow to plot 2D data? Thanks. -- Gökhan -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1__