> From: G. Durin [mailto:[email protected]]
> Sent: Tuesday, November 23, 2010 08:34
<snip>
> # Update the error bars
> barlinecols[0].set_segments(zip(zip(x-xerr,y), zip(x+xerr,y)))
> barlinecols[1].set_segments(zip(zip(x,y-yerr), zip(x,y+yerr)))
>
> The last lines are a little clumsy, but I could not find a
> better way.
I'm glad you were able to solve your problem. An alternative to the above
lines is
barlinecols[0].set_segments(
np.array([[x - xerr, y],
[x + xerr, y]]).transpose((2, 0, 1)) )
and likewise for y. The transposition produces a depth stack of 2-by-2
arrays.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users