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

Skip to content

Commit 38f00af

Browse files
committed
MNT : make rcdefaults redraw all figures
1 parent 89923a6 commit 38f00af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def rc_context(rc=None, fname=None):
311311
@docstring.copy_dedent(matplotlib.rcdefaults)
312312
def rcdefaults():
313313
matplotlib.rcdefaults()
314-
draw_if_interactive()
314+
if matplotlib.is_interactive():
315+
draw_all()
315316

316317

317318
# The current "image" (ScalarMappable) is retrieved or set

0 commit comments

Comments
 (0)