order of drawing a plot

Hi,

I would like to draw a line, and then draw some points
on top of the line, so I try something like

plot(x_line, y_line, ...)
scatter(x_point, y_point)

but in the resulting plot it seems the points are
drawn first and the lines drawn over them (so they are
obscured).

How do I specify the order in which the drawing should
take place?

thanks,

a

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

you can use the zorder option:

plot(x_line,y_line,zorder=10)
scatter(x_point,y_point,zorder=12)

N.

···

Le mardi 11 juillet 2006 14:48, aonghus a écrit :

Hi,

I would like to draw a line, and then draw some points
on top of the line, so I try something like

plot(x_line, y_line, ...)
scatter(x_point, y_point)

but in the resulting plot it seems the points are
drawn first and the lines drawn over them (so they are
obscured).

How do I specify the order in which the drawing should
take place?

thanks,

a

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options