There was a question on the matplotlib-users list about symbols in scatter, that made me realize that the new "marker = (5,0)" ... syntax, that I contributed some time ago, were not documented. So I tried to write a doc string.

Can anyone please check this and add the patch? Btw: shouldn't the "verts" keyword be removed, since marker=(verts,0) is equivalent ?

Manuel
Index: axes.py
===================================================================
--- axes.py	(revision 4835)
+++ axes.py	(working copy)
@@ -4144,10 +4144,22 @@
             'p' : pentagram
             'h' : hexagon
             '8' : octagon
-
-        If marker is None and verts is not None, verts is a sequence
-        of (x,y) vertices for a custom scatter symbol.
-
+        
+        The marker can also be a tuple (numsides, style, angle), which will
+        create a custom, regular symbol.
+        
+            numsides is the number of sides
+            
+            style is the style of the regular symbol:
+              0 : a regular polygon
+              1 : a star-like symbol
+              2 : an asterisk
+            
+            angle is the angle of rotation of the symbol
+        
+        Finally, marker can be (verts, 0), verts is a sequence of (x,y)
+        vertices for a custom scatter symbol.
+        
         s is a size argument in points squared.
 
         Any or all of x, y, s, and c may be masked arrays, in which
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to