Errorbar stays behind data

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.

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
matplotlib-users List Signup and Options

Hey,

Thank you! You solved my problem!

Cheers
Martin

2011/4/11 Sebastian Berg <sebastian@...3476...>:

···

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
matplotlib-users List Signup and Options

------------------------------------------------------------------------------
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
matplotlib-users List Signup and Options

Hello!

I have written a temprature logger using mathplotlib, i take in a list of multiple lines and print them out with Linecollection, i also supply a list of colors.

Now to the the question, what is the best way (function) to explain to the user what line in the graph that correspond to each temprature node.

What im looking for is some sort of function that make a list in the facion;

Green - Node1