Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b9e42c

Browse files
author
Jeff Whitaker
committed
fix typos that prevented script from working
svn path=/trunk/matplotlib/; revision=3289
1 parent e644548 commit 9b9e42c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/fill_demo2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from pylab import fig, nx, show
1+
from pylab import figure, nx, show
22
fig = figure()
3-
ax = fig,add_subplot(111)
3+
ax = fig.add_subplot(111)
44
t = nx.arange(0.0,3.01,0.01)
55
s = nx.sin(2*nx.pi*t)
66
c = nx.sin(4*nx.pi*t)
7-
ax.fill(t, s, 'blue', t, c, 'green', alpha=0.2)
7+
ax.fill(t, s, 'b', t, c, 'g', alpha=0.2)
88
show()

0 commit comments

Comments
 (0)