> 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' %
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=[[
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
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
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
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
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