ENH: change name to set_loglevel · matplotlib/matplotlib@a3b9635 · GitHub
Skip to content

Commit a3b9635

Browse files
committed
ENH: change name to set_loglevel
1 parent f73ccc0 commit a3b9635

5 files changed

Lines changed: 6 additions & 23 deletions

File tree

doc/devel/contributing.rst

Lines changed: 1 addition & 1 deletion

doc/faq/troubleshooting_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ provide the following information in your e-mail to the `mailing list
124124
functions::
125125

126126
import matplotlib.pyplot as plt
127-
plt.verbose() # or plt.debug()
127+
plt.set_loglevel(level='info') # or plt.set_loglevel(level='debug')
128128

129129

130130
If you want to put full debugging hooks in your own code, including

doc/users/next_whats_new/pyplot_verbose.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ New methods for verbose logging
44
-------------------------------
55

66
If more debugging information is required, the user can call
7-
the `.pyplot.verbose` or `.pyplot.debug` methods.
7+
the `.pyplot.set_loglevel` method.

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _check_versions():
207207
sys.argv = ['modpython']
208208

209209

210-
def verbose(level='info'):
210+
def set_loglevel(level='info'):
211211
"""
212212
Shortcut to set the logging level of the logging module.
213213

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 19 deletions

0 commit comments

Comments
 (0)