Skip to content

Commit 63a453f

Browse files
meeseeksmachinetimhoffm
authored andcommitted
Backport PR matplotlib#12501: Rectified plot error (matplotlib#12541)
1 parent b31cb41 commit 63a453f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ per-file-ignores =
103103
tutorials/introductory/images.py: E402, E501
104104
tutorials/introductory/pyplot.py: E402, E501
105105
tutorials/introductory/sample_plots.py: E501
106-
tutorials/introductory/usage.py: E402, E501
106+
tutorials/introductory/usage.py: E501
107107
tutorials/text/annotations.py: E501
108108
tutorials/text/pgf.py: E501
109109
tutorials/text/text_intro.py: E402

tutorials/introductory/usage.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -600,18 +600,18 @@ def my_plotter(ax, data1, data2, param_dict):
600600
# Prior to version 1.0, show() generally could not be called
601601
# more than once in a single script (although sometimes one
602602
# could get away with it); for version 1.0.1 and above, this
603-
# restriction is lifted, so one can write a script like this:
604-
605-
import numpy as np
606-
import matplotlib.pyplot as plt
607-
608-
plt.ioff()
609-
for i in range(3):
610-
plt.plot(np.random.rand(10))
611-
plt.show()
612-
613-
###############################################################################
614-
# which makes three plots, one at a time.
603+
# restriction is lifted, so one can write a script like this::
604+
#
605+
# import numpy as np
606+
# import matplotlib.pyplot as plt
607+
#
608+
# plt.ioff()
609+
# for i in range(3):
610+
# plt.plot(np.random.rand(10))
611+
# plt.show()
612+
#
613+
# which makes three plots, one at a time. I.e. the second plot will show up,
614+
# once the first plot is closed.
615615
#
616616
# Summary
617617
# -------

0 commit comments

Comments
 (0)