Re: [Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread Andrew Straw
Darren Dale wrote: > If we can figure out how to get it from numpy, we can use numpy's isnan as > well, and drop that bit of extension code from mpl's sources. Done in r3512. Hurray for inclusion instead of code duplication. (I originally copied that stuff from numarray, which inspired numpy's

Re: [Matplotlib-users] Properly aligned tick labels on the inside

2007-07-13 Thread Anthony M. Floyd
For the archives (and further proof that programming done during the witching hour between 4pm and 5pm should be avoided at all costs): The solution is easy. for tick in axes.yaxis.get_major_ticks(): tick.set_pad(-25) tick.label2.set_horizontalalignment('right') A> > -Original

Re: [Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread Darren Dale
On Friday 13 July 2007 10:32:15 am John Hunter wrote: > On 7/13/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > I think this might trace back to Interval.get_bounds() in > > src/_transforms.h. Maybe we could consider an additional Interval method > > like > > Interval.get_finite_bounds(), which coul

Re: [Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread John Hunter
On 7/13/07, Darren Dale <[EMAIL PROTECTED]> wrote: > I think this might trace back to Interval.get_bounds() in src/_transforms.h. > Maybe we could consider an additional Interval method like > Interval.get_finite_bounds(), which could do something like numpy's isfinite > function to filter values

Re: [Matplotlib-users] suspect memory leak in Agg backend

2007-07-13 Thread John Hunter
On 7/13/07, Emanuele Passera <[EMAIL PROTECTED]> wrote: > Hi all guys, > I'm experiencing a problem with automatic generation of .png figure using Agg > backend. What i do is opening, saving and closing figure in a for statement > without showing them up. > Let's say approximatively 400 figures for

[Matplotlib-users] memory leak in Agg backend

2007-07-13 Thread Emanuele Passera
Hi all, a few hours ago I have wtitten for a possible memory leak in Agg backend. It was my fault. It was a bad placement of matplotlibrc file. Sorry for the raised alarm. Instead i am glad to say that I have checked for the Agg backend with a for statement of opening a figure, drawing, saving and

Re: [Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread Darren Dale
On Friday 13 July 2007 09:13:03 am John Travers wrote: > Hi all, > > If I try to plot a graph with some y-values as -inf (which is very > common in physical sciences as we often take log10 of amplitude values > which can be zero), then matplotlib raises an exception: > > /usr/lib/python2.5/site-pac

[Matplotlib-users] Problems with auto scaling with infinite values

2007-07-13 Thread John Travers
Hi all, If I try to plot a graph with some y-values as -inf (which is very common in physical sciences as we often take log10 of amplitude values which can be zero), then matplotlib raises an exception: /usr/lib/python2.5/site-packages/matplotlib/ticker.py in scale_range(vmin, vmax, n, threshold)

Re: [Matplotlib-users] suspect memory leak in Agg backend

2007-07-13 Thread Michael Droettboom
I'm been looking at a lot of memory leaks as of late, but have not come across any in the Agg backend. Can you send a snippet of code that reproduces your error? Perhaps there is some particular operation or set of operations that triggers a leak. Cheers, Mike Emanuele Passera wrote: > Hi al

[Matplotlib-users] suspect memory leak in Agg backend

2007-07-13 Thread Emanuele Passera
Hi all guys, I'm experiencing a problem with automatic generation of .png figure using Agg backend. What i do is opening, saving and closing figure in a for statement without showing them up. Let's say approximatively 400 figures for a total of 160 MB disk space. I do not use an interactive shell