Menu

[r4398]: / trunk / htdocs / examples / fill_demo2.py  Maximize  Restore  History

Download this file

9 lines (8 with data), 197 Bytes

1
2
3
4
5
6
7
8
from pylab import figure, nx, show
fig = figure()
ax = fig.add_subplot(111)
t = nx.arange(0.0,3.01,0.01)
s = nx.sin(2*nx.pi*t)
c = nx.sin(4*nx.pi*t)
ax.fill(t, s, 'b', t, c, 'g', alpha=0.2)
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.