Skip to content

Commit

Permalink
Merge pull request #3640 from emikulic/master
Browse files Browse the repository at this point in the history
DOC : figure.max_num_figures was renamed to figure.max_open_warning.

This was done in 8c8bc8f and 0433bd5
  • Loading branch information
tacaswell committed Oct 16, 2014
1 parent 0a1a524 commit 4d83fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/users/whats_new.rst
Expand Up @@ -796,7 +796,7 @@ without closing them.
matplotlib will now display a `RuntimeWarning` when too many figures
have been opened at once. By default, this is displayed for 20 or
more figures, but the exact number may be controlled using the
``figure.max_num_figures`` rcParam.
``figure.max_open_warning`` rcParam.

.. _whats-new-1-2-2:

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Expand Up @@ -420,7 +420,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
"(`matplotlib.pyplot.figure`) are retained until "
"explicitly closed and may consume too much memory. "
"(To control this warning, see the rcParam "
"`figure.max_num_figures`)." %
"`figure.max_open_warning`)." %
max_open_warning, RuntimeWarning)

if get_backend().lower() == 'ps':
Expand Down

0 comments on commit 4d83fa7

Please sign in to comment.