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] 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] 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)