awips2/pythonPackages/matplotlib/examples/pylab_examples/scatter_star_poly.py
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

27 lines
533 B
Python
Executable file

import pylab
x = pylab.rand(10)
y = pylab.rand(10)
pylab.subplot(321)
pylab.scatter(x,y,s=80,marker=">")
pylab.subplot(322)
pylab.scatter(x,y,s=80,marker=(5,0))
verts = zip([-1.,1.,1.,-1.],[-1.,-1.,1.,-1.])
pylab.subplot(323)
pylab.scatter(x,y,s=80,marker=(verts,0))
# equivalent:
#pylab.scatter(x,y,s=80,marker=None, verts=verts)
pylab.subplot(324)
pylab.scatter(x,y,s=80,marker=(5,1))
pylab.subplot(325)
pylab.scatter(x,y,s=80,marker='+')
pylab.subplot(326)
pylab.scatter(x,y,s=80,marker=(5,2), edgecolor='g')
pylab.show()