Re: [Matplotlib-users] bar, errorbar

2006-11-11 Thread Charles R. Twardy
> If I'm right, then the assertion in bar() is misformed. I'd suggest the following. Works for me, anyway. :-) if yerr is not None: assert (len(yerr)==nbars or (len(yerr)==2 and len(yerr[0])==len(yerr[1])==nbars)), 'bar() argument \'yerr\' must be len(%s) (or a pair of such) or scalar' %

Re: [Matplotlib-users] bar, errorbar

2006-11-11 Thread Charles R. Twardy
John et al, I get this error, suggesting that yerr in bar() is not allowed to have the same format as yerr in errorbar() << if yerr is not None: assert len(yerr)==nbars, 'bar() argument \'yerr\' must be len(%s) or scalar' % lenarg >> So this works: pylab.errorbar(xrange(5), [2,5,3,4,7], yerr=[[

Re: [Matplotlib-users] matplotlib on OSX

2006-11-11 Thread Charlie Moad
On 11/10/06, Joris De Ridder <[EMAIL PROTECTED]> wrote: > Hi, > > We're trying (for the first time) to install matplotlib on OSX (Tiger on PPC > Mac). > > Before we installed matplolib we ensured that BUILD_TKAGG= 1 in setup.py. > Then we typed 'python setup.py install' which went fine. Import

Re: [Matplotlib-users] ZeroDivisionError in scale_range

2006-11-11 Thread Eric Firing
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 cal

Re: [Matplotlib-users] Matplotlib ate my real numbers?

2006-11-11 Thread yardbird
Thanks for your responses, David and Bill. I'm quite busy at the moment to go into detail in this, but strangely enough when I changed the backend from the default (GTK(Agg?) - I'm on linux) to QtAgg the bug disappeared. I think too that there could be an issue with numpy, so I just recompiled

Re: [Matplotlib-users] ZeroDivisionError in scale_range

2006-11-11 Thread Steve Schmerler
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 "", line 3, in ? > File "/usr/lib/python2.4/site-packages/matpl

[Matplotlib-users] ZeroDivisionError in scale_range

2006-11-11 Thread W Netzberg
The following code throws ZeroDivisionError:import numpy, pylabz = numpy.random.normal(-0.37727, 0.1, size=10)pylab.plot(z)pylab.show ()The stack trace:Traceback (most recent call last):  File "", line 3, in ?   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 2018, in plot    ret