Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ac14da

Browse files
committed
fix warning used by cbook.warn_deprecated()
change warning class from UserWarning to MatplotlibDeprecationWarning closes #15289
1 parent eb9b0d5 commit 4ac14da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def warn_deprecated(
108108
since, message, name, alternative, pending, obj_type, addendum,
109109
removal=removal)
110110
from . import _warn_external
111-
_warn_external(warning)
111+
_warn_external(warning, category=MatplotlibDeprecationWarning)
112112

113113

114114
def deprecated(since, *, message='', name='', alternative='', pending=False,

0 commit comments

Comments
 (0)