Skip to content

Commit 2835ca4

Browse files
author
Mofan Zhou
committed
matplotlib update
1 parent bd9c410 commit 2835ca4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

matplotlibTUT/plt17_plot_in_plot.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"""
1313

1414
import matplotlib.pyplot as plt
15-
import matplotlib.gridspec as gridspec
1615

1716
fig = plt.figure()
1817
x = [1, 2, 3, 4, 5, 6, 7]

matplotlibTUT/plt19_animation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def animate(i):
3232

3333
# Init only required for blitting to give a clean slate.
3434
def init():
35-
line.set_ydata(np.ma.array(x, mask=True))
35+
line.set_ydata(np.sin(x))
3636
return line,
3737

3838
# call the animator. blit=True means only re-draw the parts that have changed.

0 commit comments

Comments
 (0)