Hi,
you are limited to 10 "named" symbols. But you can use much more symbols with scatter !!! Have a look at examples/scatter_star_symbols.py.
You can use:
pylab.scatter(x,y,marker=(5,0))
produces a 5-sided regular polygon.
pylab.scatter(x,y,marker=(5,1))
produces a starlike polygon
pylab.scatter(x,y,marker=(5,2))
produces an asterisk.
You can even define your own symbols by defining the vertices of a polygon:
verts = zip( [x1,x2,x3...], [y1,y2,y3,...])
pylab.scatter(x,y,marker=(verts,0))
Note that there is a third, optional parameter for the marker keyword, ie. marker=(5,0,math.pi/4.) that defines the rotation of a symbol.
Manuel
···
Giorgio.Luciano@...507... wrote:
I was wondering if there exist a functino like Matlab (TM) gscatter in matplot lib but I coulnd't find one.
I also seen that in matplot lib we are "limited" to 10 symbols in scatter while in MT we have 13 (and I have to plot 12 :)))
is it possible to implement the new function (gscatter) and other symbols
thanks
Giorgio
------------------------------------------------------------------------
-------------------------------------------------------------------------
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-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options