Hello, I have a problem to plot some data.
> I use "plot" to plot some data and "scatter" for other. I
> obtain a plot whith the point trace with "scatter" are
> behind the points from "plot". I tried to change the order
> in the script but that change nothing. Do you know how to
> do this? (I want use scatter because I want have a
> specific size for this points)
I just added the long awaited zorder attribute to the Artist base
class in CVS, originally discussed here
There is a new example examples/zorder_demo.py that shows you how to
set the zorder. I'll include it below.
It will be in the next release, probably early next week
The default drawing order for axes is patches, lines, text. This
order is determined by the zorder attribute. The following default
Patch / PatchCollection 1
Line2D / LineCollection 2
You can change the order for individual artists by setting the zorder.
In the fist subplot below, the lines are drawn above the patch
collection from the scatter, which is the default.
In the subplot below, the order is reversed
from pylab import *
x = rand(20); y = rand(20)
plot(x, y, 'r', lw=3)
plot(x, y, 'r', zorder=1, lw=3)