File tree 5 files changed +6
-23
lines changed 5 files changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ Then they will receive messages like::
451
451
More straight forward helper methods are available to end-users as well::
452
452
453
453
import matplotlib.pyplot as plt
454
- plt.verbose( ) # or plt.debug( )
454
+ plt.set_loglevel(level='info' ) # or plt.set_loglevel(level='debug' )
455
455
456
456
Which logging level to use?
457
457
~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
124
124
functions::
125
125
126
126
import matplotlib.pyplot as plt
127
- plt.verbose( ) # or plt.debug( )
127
+ plt.set_loglevel(level='info' ) # or plt.set_loglevel(level='debug' )
128
128
129
129
130
130
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
4
4
-------------------------------
5
5
6
6
If 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():
207
207
sys .argv = ['modpython' ]
208
208
209
209
210
- def verbose (level = 'info' ):
210
+ def set_loglevel (level = 'info' ):
211
211
"""
212
212
Shortcut to set the logging level of the logging module.
213
213
Original file line number Diff line number Diff line change @@ -1997,7 +1997,7 @@ def colormaps():
1997
1997
return sorted (cm .cmap_d )
1998
1998
1999
1999
2000
- def verbose (level = 'info' ):
2000
+ def set_loglevel (level = 'info' ):
2001
2001
"""
2002
2002
Shortcut to set the debugging level of the logging module.
2003
2003
@@ -2020,24 +2020,7 @@ def verbose(level='info'):
2020
2020
_log.setLevel(logging.DEBUG) # or logging.WARNING, logging.INFO
2021
2021
2022
2022
"""
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 )
2041
2024
2042
2025
2043
2026
def _setup_pyplot_info_docstrings ():
You can’t perform that action at this time.
0 commit comments