Skip to content

Commit 4d83fa7

Browse files
committed
Merge pull request #3640 from emikulic/master
DOC : figure.max_num_figures was renamed to figure.max_open_warning. This was done in 8c8bc8f and 0433bd5
1 parent 0a1a524 commit 4d83fa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/users/whats_new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ without closing them.
796796
matplotlib will now display a `RuntimeWarning` when too many figures
797797
have been opened at once. By default, this is displayed for 20 or
798798
more figures, but the exact number may be controlled using the
799-
``figure.max_num_figures`` rcParam.
799+
``figure.max_open_warning`` rcParam.
800800

801801
.. _whats-new-1-2-2:
802802

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
420420
"(`matplotlib.pyplot.figure`) are retained until "
421421
"explicitly closed and may consume too much memory. "
422422
"(To control this warning, see the rcParam "
423-
"`figure.max_num_figures`)." %
423+
"`figure.max_open_warning`)." %
424424
max_open_warning, RuntimeWarning)
425425

426426
if get_backend().lower() == 'ps':

0 commit comments

Comments
 (0)