Title: Make Deprecation Warning in matplotlib more useful · Issue #13352 · matplotlib/matplotlib · GitHub
Open Graph Title: Make Deprecation Warning in matplotlib more useful · Issue #13352 · matplotlib/matplotlib
X Title: Make Deprecation Warning in matplotlib more useful · Issue #13352 · matplotlib/matplotlib
Description: Bug report Sources of deprecation warnings in matplotlib are hard to track down. Code for reproduction from matplotlib import pyplot as plt plt.tick_params(left="False") Actual outcome /home/hdembinski/.local/lib/python3.7/site-packages/...
Open Graph Description: Bug report Sources of deprecation warnings in matplotlib are hard to track down. Code for reproduction from matplotlib import pyplot as plt plt.tick_params(left="False") Actual outcome /home/hdembi...
X Description: Bug report Sources of deprecation warnings in matplotlib are hard to track down. Code for reproduction from matplotlib import pyplot as plt plt.tick_params(left="False") Actual outcome /h...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13352
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make Deprecation Warning in matplotlib more useful","articleBody":"### Bug report\r\n\r\nSources of deprecation warnings in matplotlib are hard to track down.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nfrom matplotlib import pyplot as plt\r\nplt.tick_params(left=\"False\")\r\n```\r\n\r\n**Actual outcome**\r\n```\r\n/home/hdembinski/.local/lib/python3.7/site-packages/matplotlib/cbook/__init__.py:424: MatplotlibDeprecationWarning: \r\nPassing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.\r\n warn_deprecated(\"2.2\", \"Passing one of 'on', 'true', 'off', 'false' as a \"\r\n```\r\nAs 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.\r\n\r\n**Expected outcome**\r\nThe 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.\r\n\r\n**Matplotlib version**\r\n * Matplotlib version: 3.0.2\r\n * Python version: 3.7.1\r\n","author":{"url":"https://github.com/HDembinski","@type":"Person","name":"HDembinski"},"datePublished":"2019-02-03T10:21:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/13352/matplotlib/issues/13352"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd567080-5b3e-abe3-2669-ef61dcc0ac5d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0A0:10D8A9:1DA4B9:2A5D91:6A535CEC |
| html-safe-nonce | 50c6b44b5bf2b7fc3f5cf4c91a19a3b85ef06651486b0282c687eac93bf0eec4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEEwOjEwRDhBOToxREE0Qjk6MkE1RDkxOjZBNTM1Q0VDIiwidmlzaXRvcl9pZCI6IjEzMDc2MjEwNTI5NTcwMjM0NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0938b3d5d9790f4df13adbbe93713915f04a345f803647c0303fc4a29bab7492 |
| hovercard-subject-tag | issue:406073513 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/13352/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57708696d558930a8b6dc15379918d9b232392712395a4ed06d58fbfe48f317c/matplotlib/matplotlib/issues/13352 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57708696d558930a8b6dc15379918d9b232392712395a4ed06d58fbfe48f317c/matplotlib/matplotlib/issues/13352 |
| og:image:alt | Bug report Sources of deprecation warnings in matplotlib are hard to track down. Code for reproduction from matplotlib import pyplot as plt plt.tick_params(left="False") Actual outcome /home/hdembi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HDembinski |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width