Loading...

matplotlib-users@lists.sourceforge.net

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Matplotlib-users] plotting asymmetric error bars? Gary Ruben Sun Sep 13 02:00:36 2009

Hi Per,

You need 2*N, not N*2 arrays here. I think you're also trying to use 
absolute values so you probably need something like this:

plt.errorbar([1,2,3],[1,2,3],yerr=np.abs(a.T-[1,2,3]))

I hope this is what you're after,

Gary R.

per freem wrote:
> hi all,
> 
> i am trying to plot asymmetric yaxis error bars. i have the following code:
> 
> import matplotlib.pyplot as plt
> a = array([[ 0.5,  1.5],
>        [ 0.7,  2.2],
>        [ 2.8,  3.1]])
> plt.errorbar([1,2,3],[1,2,3],yerr=a)
<snip>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users