File: scatter_star_poly.py

package info (click to toggle)
matplotlib 0.98.1-1%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,624 kB
  • ctags: 22,599
  • sloc: python: 76,915; cpp: 63,459; ansic: 5,353; makefile: 111; sh: 12
file content (27 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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()