Menu

[r3765]: / trunk / matplotlib / examples / scatter_star_poly.py  Maximize  Restore  History

Download this file

22 lines (15 with data), 414 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import pylab
x = pylab.nx.mlab.rand(10)
y = pylab.nx.mlab.rand(10)
pylab.subplot(221)
pylab.scatter(x,y,s=80,marker=">")
pylab.subplot(222)
pylab.scatter(x,y,s=80,marker=(5,0))
verts = zip([-1.,1.,1.],[-1.,-1.,1.])
pylab.subplot(223)
pylab.scatter(x,y,s=80,marker=(verts,0))
# equivalent:
#pylab.scatter(x,y,s=80,marker=None, verts=verts)
pylab.subplot(224)
pylab.scatter(x,y,s=80,marker=(5,1))
pylab.show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.