scatter and Polygon

Hi, how can I draw the scatter squares in front of the

    > Polygon?

Set the zorder of the PolyCollection (what scatter uses) to be higher
than the zorder of the Polygon

  col = ax.scatter(x,y, color="b", s=150, marker="s", alpha=0.2, zorder=Polygon.zorder+1)

JDH

Thanks, that solved that problem, but if I use 'label="blabla"' in scatter, it
does not show up in the legend. Only the label of the Polygon is shown.

wr

···

Am Montag, 20. November 2006 16:15 schrieb John Hunter:

    > Hi, how can I draw the scatter squares in front of the
    > Polygon?

Set the zorder of the PolyCollection (what scatter uses) to be higher
than the zorder of the Polygon

  col = ax.scatter(x,y, color="b", s=150, marker="s", alpha=0.2,
zorder=Polygon.zorder+1)

JDH