Question to scatter plot

"Alexander Dietz" <Alexander.Dietz@...1663...> writes:

Although the scatter command is called later, any point drawn with the "
scatter"-command lies behind the black crosses drawn by the "plot" command.
Any ideas how to get the order right?

Set the zorder property. Try e.g.:

clf()
l=plot(rand(50), rand(50), 'kx')
p=scatter(rand(20), rand(20), 40, c=rand(20), faceted=False)
getp(l[0], 'zorder')
getp(p, 'zorder')
setp(p, zorder=3)

···

--
Jouni K. Sepp�nen