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

[Matplotlib-users] Creating an xaxis with minutes

2009-04-07 Thread Brian Zambrano
He there, I'm new to matplotlib but have really been appreciating the thorough documentation and examples online. I've never worked with matlab either so I'm stumbling my way around a bit, but have managed to get some basic plots working with my wxPython program. I'm plotting some simple time/t