Re: [Matplotlib-users] x-axes time format

2011-06-10 Thread Benjamin Root
On Fri, Jun 10, 2011 at 12:50 PM, calmar c. wrote: > On Fri, Jun 10, 2011 at 11:10:02AM -0500, Benjamin Root wrote: > > > >Why not just use an array of datetime.timedelta objects?� I believe > >matplotlib already supports this, does automatic formatting and even > >allows you to easil

Re: [Matplotlib-users] Problem with events when interactive is on

2011-06-10 Thread Jorge Scandaliaris
Benjamin Root writes: > Jorges, > iPython can do some special things with matplotlib's interactivity when > invoked in certain ways (hence why it was called "interactive" python).  I > don't know the particulars of what ipython does, but this does not surprise > me.  Does everything work as y

Re: [Matplotlib-users] x-axes time format

2011-06-10 Thread calmar c.
On Fri, Jun 10, 2011 at 11:10:02AM -0500, Benjamin Root wrote: > >Why not just use an array of datetime.timedelta objects?� I believe >matplotlib already supports this, does automatic formatting and even >allows you to easily modify how the formatting is done. I was not able to figure

Re: [Matplotlib-users] x-axes time format

2011-06-10 Thread Benjamin Root
On Fri, Jun 10, 2011 at 11:01 AM, calmar c. wrote: > On Fri, Jun 10, 2011 at 09:00:28AM -0400, Scott Lasley wrote: > > > > One way would be to use a matplotlib.ticker.FuncFormatter > > > > import matplotlib.pyplot as plt > > import matplotlib.ticker > > > > def HMSFormatter(value, loc): > > h

Re: [Matplotlib-users] x-axes time format

2011-06-10 Thread calmar c.
On Fri, Jun 10, 2011 at 09:00:28AM -0400, Scott Lasley wrote: > > One way would be to use a matplotlib.ticker.FuncFormatter > > import matplotlib.pyplot as plt > import matplotlib.ticker > > def HMSFormatter(value, loc): > h = value // 3600 > m = (value - h * 3600) // 60 > s = value

Re: [Matplotlib-users] Problem with events when interactive is on

2011-06-10 Thread Benjamin Root
On Fri, Jun 10, 2011 at 9:24 AM, Jorge Scandaliaris wrote: > Hi, > > Are events supposed to be used in non-interactive mode? I've been having > some > weird issues recently (see > > http://thread.gmane.org/gmane.comp.python.matplotlib.general/26233/focus=26267 > ) > which, just by chance, I pinned

[Matplotlib-users] Problem with events when interactive is on

2011-06-10 Thread Jorge Scandaliaris
Hi, Are events supposed to be used in non-interactive mode? I've been having some weird issues recently (see http://thread.gmane.org/gmane.comp.python.matplotlib.general/26233/focus=26267) which, just by chance, I pinned down to having matplotlib.interactive(True) in my custom ipython's pylab prof

Re: [Matplotlib-users] fill-between special demand

2011-06-10 Thread Johannes Radinger
Original-Nachricht > Datum: Fri, 10 Jun 2011 14:40:17 +0200 > Von: Sebastian Berg > An: Johannes Radinger > CC: matplotlib-users@lists.sourceforge.net > Betreff: Re: [Matplotlib-users] fill-between special demand > On Fri, 2011-06-10 at 14:15 +0200, Johannes Radinger wrote: >

Re: [Matplotlib-users] fill-between special demand

2011-06-10 Thread Sebastian Berg
On Fri, 2011-06-10 at 14:15 +0200, Johannes Radinger wrote: > Hello, > > I know that it is possible to fill an area between to curves (functions) with > "fill between". > > In my case I've got let's say 10 curves of different shape. I'd like to fill > the area between the most upper lines and t

[Matplotlib-users] fill-between special demand

2011-06-10 Thread Johannes Radinger
Hello, I know that it is possible to fill an area between to curves (functions) with "fill between". In my case I've got let's say 10 curves of different shape. I'd like to fill the area between the most upper lines and the most lower lines. Is that somehow possible? One work-around which appe

[Matplotlib-users] x-axes time format

2011-06-10 Thread calmar c.
Hi all, what could be a simple way when I have 'seconds' as data to display them as %H:%M:%S on the x-axes? many thanks marco -- (o_ It rocks: LINUX + Command-Line-Interface //\ GPG: 0x59D90F4D V_/_ http://www.calmar.ws ---