Skip to content

Commit 1c99420

Browse files
committed
MNT : move repl install above boilerplate fold
1 parent a26831d commit 1c99420

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/pyplot.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,12 @@ def spy(Z, precision=0, marker=None, markersize=None, aspect='equal', hold=None,
25242524
sci(ret)
25252525
return ret
25262526

2527+
# just to be safe. Interactive mode can be turned on without
2528+
# calling `plt.ion()` so register it again here.
2529+
# This is safe because multiple calls to `install_repl_displayhook`
2530+
# are no-ops and the registered function respect `mpl.is_interactive()`
2531+
# to determine if they should trigger a draw.
2532+
install_repl_displayhook()
25272533

25282534
################# REMAINING CONTENT GENERATED BY boilerplate.py ##############
25292535

@@ -3907,9 +3913,3 @@ def spectral():
39073913
draw_if_interactive()
39083914

39093915
_setup_pyplot_info_docstrings()
3910-
# just to be safe. Interactive mode can be turned on without
3911-
# calling `plt.ion()` so register it again here.
3912-
# This is safe because multiple calls to `install_repl_displayhook`
3913-
# are no-ops and the registered function respect `mpl.is_interactive()`
3914-
# to determine if they should trigger a draw.
3915-
install_repl_displayhook()

0 commit comments

Comments
 (0)