Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Brian Zambrano
On Wed, Apr 8, 2009 at 7:33 AM, Ryan May wrote: > > import matplotlib.ticker as mticker > > def minsec(sec, unused): > minutes = sec // 60 > sec = sec - minutes * 60 > return '%d:%02d' % (minutes, sec) > > locator = mticker.MultipleLocator(60) > formatter = mticker.FuncFormatter(minse

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Ryan May
On Tue, Apr 7, 2009 at 4:29 PM, Jae-Joon Lee wrote: > Hi, > > I'm not a frequent user of matplotlib.dates module, so other expert > may give you a better answer. > My understanding is that, for the date time formatting, the (x-) data > needs to be days (if not datetime instance) from some refere

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-07 Thread Jae-Joon Lee
Hi, I'm not a frequent user of matplotlib.dates module, so other expert may give you a better answer. My understanding is that, for the date time formatting, the (x-) data needs to be days (if not datetime instance) from some reference point (1, 1, 1? I'm not sure). The easiest way I can think o