Transparent plot symbols

Hi,
I can't find a way to plot marker symbols that have a transparent face colour,
so I can see the contour plot that's under them. Setting alpha affects the
edge colour as well.
Any suggestions?
Paul

Paul Smith wrote:

Hi,
I can't find a way to plot marker symbols that have a transparent face colour, so I can see the contour plot that's under them. Setting alpha affects the edge colour as well.
Any suggestions?

Paul,

If you want the symbol faces to be completely transparent, set mfc='None' (with quotes):

plot([1,2,3], 'o', mfc='None')

If you need them to be colored but with an alpha, then you will have to plot twice, once for the edges as above (adding an alpha kwarg if desired), and the second time for the centers with markeredgewidth=0 to turn off the edges. (For consistency one might expect mec='None' should work the same way, but it doesn't.)

The drawing model is such that alpha is attached to the whole marker, and can't be set separately for edge and face without making two separate markers, as suggested above. Note also that postscript doesn't support alpha at all.

Eric

ยทยทยท

Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users