File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ Then they will receive messages like::
451451More straight forward helper methods are available to end-users as well::
452452
453453 import matplotlib.pyplot as plt
454- plt.verbose( ) # or plt.debug( )
454+ plt.set_loglevel(level='info' ) # or plt.set_loglevel(level='debug' )
455455
456456Which logging level to use?
457457~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ New methods for verbose logging
44-------------------------------
55
66If more debugging information is required, the user can call
7- the `.pyplot.verbose ` or ` .pyplot.debug ` methods .
7+ the `.pyplot.set_loglevel ` method .
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -1997,7 +1997,7 @@ def colormaps():
19971997 return sorted (cm .cmap_d )
19981998
19991999
2000- def verbose (level = 'info' ):
2000+ def set_loglevel (level = 'info' ):
20012001 """
20022002 Shortcut to set the debugging level of the logging module.
20032003
@@ -2020,24 +2020,7 @@ def verbose(level='info'):
20202020 _log.setLevel(logging.DEBUG) # or logging.WARNING, logging.INFO
20212021
20222022 """
2023- matplotlib .verbose (level = level )
2024-
2025-
2026- def debug ():
2027- """
2028- Shortcut to set the debugging level of the logging module to DEBUG
2029-
2030- Notes
2031- -----
2032- This is the same as the standard python `logging` module::
2033-
2034- import logging
2035-
2036- _log = logging.getLogger(__name__)
2037- _log.setLevel(logging.DEBUG)
2038-
2039- """
2040- matplotlib .verbose (level = 'debug' )
2023+ matplotlib .set_loglevel (level = level )
20412024
20422025
20432026def _setup_pyplot_info_docstrings ():
You can’t perform that action at this time.
0 commit comments