source: trunk/adm/website/pyplot/ellipses.py @ 154

Last change on this file since 154 was 36, checked in by pinsard, 13 years ago

add end users website production

File size: 322 bytes
Line 
1from pylab import *
2from matplotlib.patches import Ellipse
3
4delta = 45.0 # degrees
5
6angles = arange(0, 360+delta, delta)
7ells = [Ellipse((1, 1), 4, 2, a) for a in angles]
8
9a = subplot(111, aspect='equal')
10
11for e in ells:
12    e.set_clip_box(a.bbox)
13    e.set_alpha(0.1)
14    a.add_artist(e)
15
16xlim(-2, 4)
17ylim(-1, 3)
18
19show()
Note: See TracBrowser for help on using the repository browser.