Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > dc303dcad9fdd039290b4e78a58ed938 > files > 673

python-matplotlib-0.99.1.2-4.fc13.i686.rpm

from matplotlib.pyplot import figure, show
from numpy import arange, sin, pi

fig = figure()
ax = fig.add_subplot(111)
t = arange(0.0,3.01,0.01)
s = sin(2*pi*t)
c = sin(4*pi*t)
ax.fill(t, s, 'b', t, c, 'g', alpha=0.2)
show()