Re: [Matplotlib-users] time axis format

2013-06-11 Thread Sudheer Joseph
> Cc: "matplotlib-users@lists.sourceforge.net" > > Sent: Tuesday, 11 June 2013 12:53 PM > Subject: Re: [Matplotlib-users] time axis format > > On 2013/06/10 6:16 PM, Sudheer Joseph wrote: >> >> >> Thank you Eric and CM, >> I have the below piece

Re: [Matplotlib-users] time axis format

2013-06-11 Thread Eric Firing
2 vmin, vmax = self.axis.get_view_interval() > 533 return num2date(vmin, self.tz), num2date(vmax, self.tz) > 534 > > AttributeError: 'NoneType' object has no attribute 'get_view_interva > > > > From: Eric Firing > > To: matplotli

Re: [Matplotlib-users] time axis format

2013-06-11 Thread Eric Firing
On 2013/06/10 6:16 PM, Sudheer Joseph wrote: > Thank you Eric and CM, > I have the below piece of code and added the new definition for minorLocs, > but gets the below error. I believe I did not fully understand the concept > you mentioned. > The concept is "subclassing": writing a class that "i

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph
ourceforge.net" > > Cc: > Sent: Tuesday, 11 June 2013 9:46 AM > Subject: Re: [Matplotlib-users] time axis format > > > > Thank you Eric and CM, > I have the below piece of code and added the new definition for minorLocs, > but > gets the below error.

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph
(dt, 'hour'):     194 base += (dt.hour/HOURS_PER_DAY + dt.minute/MINUTES_PER_DAY + AttributeError: 'XTick' object has no attribute 'toordinal' From: C M To: matplotlib-users@lists.sourceforge.net >Sent: Tuesday, 11 June 2013 6:41 AM >Subject:

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph
*args) >         return = s[:1] + s[3:] > >... > >majorFmt = MonthLetterYear() >minorFmt = MonthLetter() > > >Not tested, but something like that should work. > >Eric > > >> >> >> &

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Eric Firing
ut something like that should work. Eric > > > > *From: * Paul Hobson ; > *To: * Sudheer Joseph ; > *Cc: * matplotlib-users@lists.sourceforge.net > ; > *Subject: * Re: [Matplotlib-users] time axis format > *Sent: * Mon, Jun 10, 2013 8:08:18 PM > > In that case, I

Re: [Matplotlib-users] time axis format

2013-06-10 Thread C M
--- > * From: * Paul Hobson ; > * To: * Sudheer Joseph ; > * Cc: * matplotlib-users@lists.sourceforge.net < > matplotlib-users@lists.sourceforge.net>; > * Subject: * Re: [Matplotlib-users] time axis format > * Sent: * Mon, Jun 10, 2013 8:08:18 PM > > In that c

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph
Thank you, So there is no way to get J F M A etc with out reducing font size? We often need to make presentation in front of senior people who insist for bigger fonts. With best regards, Sudheer-- This SF.net email is spo

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Paul Hobson
> *From:* Sudheer Joseph > *To:* Paul Hobson > *Cc:* "matplotlib-users@lists.sourceforge.net" < > matplotlib-users@lists.sourceforge.net> > *Sent:* Saturday, 8 June 2013 7:46 PM > > *Subject:* Re: [Matplotlib-users] time axis format >

Re: [Matplotlib-users] time axis format

2013-06-07 Thread Paul Hobson
On Thu, Jun 6, 2013 at 11:39 PM, Sudheer Joseph wrote: > Dear Experts, > I have been experimenting with the plot_dates option of > matplotlib to plot time series data and have below questions > > I have used > loc = mdates.AutoDateLocator() > ax.xaxis.set_major_locator(loc) > ax.xaxis

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__

Re: [Matplotlib-users] time axis

2007-02-12 Thread Derek Hohls
Sture Did you look in the mail archive - there is a thread titled: " x-axis Label in hh:mm:ss format" which addresses this. Derek >>> Sture Lygren <[EMAIL PROTECTED]> 2007/02/12 12:14:26 PM >>> Hi, Been reading the docs but couldn't find an easy solution for this one ... I've got a dataset

[Matplotlib-users] time axis

2007-02-12 Thread Sture Lygren
Hi, Been reading the docs but couldn't find an easy solution for this one ... I've got a dataset containing dates and measurement (['2006-12-26 00:00:10','2006-12-26 00:00:20',...], [10.1722,7.99665,...]). Converting dates using time.strptime, datetime and date2num I end up with this dataset (