You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make Deprecation Warning in matplotlib more useful #13352
/home/hdembinski/.local/lib/python3.7/site-packages/matplotlib/cbook/__init__.py:424: MatplotlibDeprecationWarning:
Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.
warn_deprecated("2.2", "Passing one of 'on', 'true', 'off', 'false' as a "
As you can see, there is no indication which line in my client code triggers the warning. If the script is long and not minimal, the origin is difficult to find.
Expected outcome
The deprecation warning should be enhanced with a backtrace of some sort, that allows me to find the call in my script which triggers the warning.
Activity
jklymak commentedon Feb 3, 2019
Thanks. The deprecation operator was recently improved:
returns the (hopefully) more helpful:
This change came in #12152 and will be available when 3.1 is released (Feb/Mar timeframe).
I'll close as fixed.
HDembinski commentedon Feb 3, 2019
Cool, thanks!