Hey, not sure about which values are good to use (there is an example in the gallery about it), but do the first plot command for example with zorder=1 keyword argument, and the errorbar with zorder=2, and voila you got what you want.
Regards, Sebastian On Mon, 2011-04-11 at 14:49 +0200, Martin Sparre wrote: > Dear Matplotlib-users, > > I am trying to plot some data as well as an errorbar. The problem is > that the errorbar stays behind the data even though plt.errorbar(...) > comes after plt.plot(....) in my code. Here is a simple code that > produces the problem: > > http://dark-cosmology.dk/~sparre/example.py > > And here is a png-file showing the errorbar behind the data. > http://dark-cosmology.dk/~sparre/image.png > > Can anyone help me with getting the errorbar in front of the blue > curve? - it would make me very happy! > > I am using Matplotlib version 1.0.1 on Ubuntu 10.10 (Python 2.6.6). > > Best regards, > Martin Sp. > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users