Skip to content

Commit

Permalink
Updated stackplot example.
Browse files Browse the repository at this point in the history
Stackplot example now reflects usage of variadic calling signature.
  • Loading branch information
dmcdougall committed Jun 19, 2012
1 parent 8bbac65 commit 6674548
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/pylab_examples/stackplot_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
y = np.row_stack((fnx(), fnx(), fnx()))
x = np.arange(10)

y1, y2, y3 = fnx(), fnx(), fnx()

fig = plt.figure()
ax = fig.add_subplot(111)
ax.stackplot(x, y)
plt.show()

fig = plt.figure()
ax = fig.add_subplot(111)
ax.stackplot(x, y1, y2, y3)
plt.show()

0 comments on commit 6674548

Please sign in to comment.