8000 Merge pull request #3640 from emikulic/master · matplotlib/matplotlib@83062f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83062f8

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
2 parents 6c82eb7 + e4843db commit 83062f8

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
@@ -811,7 +811,7 @@ without closing them.
811811
matplotlib will now display a `RuntimeWarning` when too many figures
812812
have been opened at once. By default, this is displayed for 20 or
813813
more figures, but the exact number may be controlled using the
814-
``figure.max_num_figures`` rcParam.
814+
``figure.max_open_warning`` rcParam.
815815

816816
.. _whats-new-1-2-2:
817817

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 4243
max_open_warning, RuntimeWarning)
425425

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

0 commit comments

Comments
 (0)
0