File tree 1 file changed +21
-4
lines changed
1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -1997,15 +1997,15 @@ def colormaps():
1997
1997
return sorted (cm .cmap_d )
1998
1998
1999
1999
2000
- def verbose (level = 'debug ' ):
2000
+ def verbose (level = 'info ' ):
2001
2001
"""
2002
2002
Shortcut to set the debugging level of the logging module.
2003
2003
2004
2004
Parameters
2005
2005
----------
2006
- level : str or bool
2007
- If True set logging level to "DEBUG " for matplotlib module.
2008
- If FALSE set logging level to "WARNING" for matplotlib module (this
2006
+ level : str or bool (optional)
2007
+ If * True* (default) set logging level to "INFO " for matplotlib module.
2008
+ If *False* set logging level to "WARNING" for matplotlib module (this
2009
2009
is the default level if ``verbose`` is not called). If a string, must
2010
2010
be one of ['warning', 'info', 'debug'], in order of increasing
2011
2011
verbosity.
@@ -2023,6 +2023,23 @@ def verbose(level='debug'):
2023
2023
matplotlib .verbose (level = level )
2024
2024
2025
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' )
2041
+
2042
+
2026
2043
def _setup_pyplot_info_docstrings ():
2027
2044
"""
2028
2045
Generates the plotting docstring.
You can’t perform that action at this time.
0 commit comments