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

Skip to content

Commit e4843db

Browse files
committed
figure.max_num_figures was renamed to figure.max_open_warning.
1 parent 3e15a8e commit e4843db

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

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

0 commit comments

Comments
 (0)