That problem was fixed quite a few months ago; I don't recall exactly when.

Eric

W Netzberg wrote:
> The following code throws ZeroDivisionError:
> import numpy, pylab
> z = numpy.random.normal(-0.37727, 0.1, size=10)
> pylab.plot(z)
> pylab.show ()
> The stack trace:
> Traceback (most recent call last):
>   File "<stdin>", line 3, in ?
>   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 
> 2018, in plot
>     ret =  gca().plot(*args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 2790, 
> in plot
>     self.autoscale_view()
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 817, 
> in autoscale_view
>     self.set_ylim(locator.autoscale())
>   File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line 
> 798, in autoscale
>     return take(self.bin_boundaries(dmin, dmax), [0,-1])
>   File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line 
> 768, in bin_boundaries
>     scale, offset = scale_range(vmin, vmax, nbins)
>   File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line 
> 733, in scale_range
>     var = dv/max(abs(vmin), abs(vmax))
> ZeroDivisionError: float division
> 
> Any ideas?
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to