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