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=[[1,4,2,3,6],[4,10,6,8,14]])
But this does not:
  pylab.bar(xrange(5), [2,5,3,4,7], yerr=[[1,4,2,3,6],[4,10,6,8,14]])

Version 0.87.5 (Debian)

If I'm right, then the assertion in bar() is misformed.
-C

On 11/6/06, John Hunter <[EMAIL PROTECTED]> wrote:
> >>>>> "Charles" == Charles R Twardy <[EMAIL PROTECTED]> writes:
>
>     Charles> Hi folks, It seems that 'bar' no longer supports
>     Charles> asymmetric errorbars.  Am I meant to call both 'bar' and
>     Charles> 'errorbar' if I want asymmetric errorbars on my
>     Charles> histograms?  Is there a canonical idiom?
>
>     Charles> Sorry if I missed a previous answer to this.
>
> I don't use asymmetric error bars so don't have any ready test code,
> but looking at the implementation, the xerr and yerr kwargs to bar are
> passed on to errorbar after a bit of array conversion and length
> checking.  Does this not work for you?  If not, can you send a snippet
> of freestanding test code?
>
> Thanks,
> JDH
>


-- 
Charles R. Twardy

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