what decides which lines go on top of the rest

I am trying
to make a scatter plot (it is important that it is a scatter plot
because I want the markers to be color coded). Each point also has
errobars associated and since there is no way to plot errorbars on
scatter plots I am plotting them separately, i.e. plot twice: once with
the errorbars and no markers and then with only markers as in a scatter
plot.

The problem is that regardless of the order in which I do this, the
errorbars are alwas on top of the markers of the scatter plot and I
would like the opposite, markers on top of the errorbars. Can this be
done? And more generally, how can I choose what goes on top of what?

Thanks,

Valentino.-

You should be able to pass zorder=<number> to the plotting functions
to control the order.

Ryan

ยทยทยท

On Wed, May 5, 2010 at 4:36 PM, Valentino Gonzalez <vggonzal@...2088...> wrote:

I am trying to make a scatter plot (it is important that it is a scatter
plot because I want the markers to be color coded). Each point also has
errobars associated and since there is no way to plot errorbars on scatter
plots I am plotting them separately, i.e. plot twice: once with the
errorbars and no markers and then with only markers as in a scatter plot.
The problem is that regardless of the order in which I do this, the
errorbars are alwas on top of the markers of the scatter plot and I would
like the opposite, markers on top of the errorbars. Can this be done? And
more generally, how can I choose what goes on top of what?

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma