Title: Legend.get_window_extent now requires a renderer · Issue #11970 · matplotlib/matplotlib · GitHub
Open Graph Title: Legend.get_window_extent now requires a renderer · Issue #11970 · matplotlib/matplotlib
X Title: Legend.get_window_extent now requires a renderer · Issue #11970 · matplotlib/matplotlib
Description: See mwaskom/seaborn#1551 import matplotlib.pyplot as plt leg = plt.legend() plt.gcf().canvas.draw() leg.get_window_extent() The issue seems to be that #10910 switched which of the children from a patch (which seems to not actually need a...
Open Graph Description: See mwaskom/seaborn#1551 import matplotlib.pyplot as plt leg = plt.legend() plt.gcf().canvas.draw() leg.get_window_extent() The issue seems to be that #10910 switched which of the children from a p...
X Description: See mwaskom/seaborn#1551 import matplotlib.pyplot as plt leg = plt.legend() plt.gcf().canvas.draw() leg.get_window_extent() The issue seems to be that #10910 switched which of the children from a p...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11970
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Legend.get_window_extent now requires a renderer","articleBody":"See https://github.com/mwaskom/seaborn/issues/1551\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nleg = plt.legend()\r\nplt.gcf().canvas.draw()\r\nleg.get_window_extent()\r\n```\r\n\r\nThe issue seems to be that https://github.com/matplotlib/matplotlib/pull/10910 switched which of the children from a patch (which seems to not actually need a renderer to sort out it's size) and a Vpacker (which fixes another bug, but really does need the renderer).","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2018-08-29T03:42:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/11970/matplotlib/issues/11970"}
| 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:b6b53a95-8875-d41d-3b21-a305dc891ab5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D616:28F8C1:1C12AA0:28F7CCF:6A564627 |
| html-safe-nonce | 9fc9662d837342a6a63684e3d95a19803a5eec4d405f3956435fb6b8eab6aec3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjE2OjI4RjhDMToxQzEyQUEwOjI4RjdDQ0Y6NkE1NjQ2MjciLCJ2aXNpdG9yX2lkIjoiNTg4Nzc1MTY5NzU1Mjc4Njk4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 144f7538c2c9adcbb369059c07d1048559d12bca29df626246b8753510d46e1b |
| hovercard-subject-tag | issue:354983923 |
| 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/11970/issue_layout |
| twitter:image | https://opengraph.githubassets.com/154e7994b0b23569711372a739d21b7abc34adfbfb6ee46bc2c0c9fb963d6d14/matplotlib/matplotlib/issues/11970 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/154e7994b0b23569711372a739d21b7abc34adfbfb6ee46bc2c0c9fb963d6d14/matplotlib/matplotlib/issues/11970 |
| og:image:alt | See mwaskom/seaborn#1551 import matplotlib.pyplot as plt leg = plt.legend() plt.gcf().canvas.draw() leg.get_window_extent() The issue seems to be that #10910 switched which of the children from a p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 96d96c6ad1e3234907759a5e634942d2ca0aded8a6ec1693a59d0f2c59c0dac9 |
| 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 | f0d7fddec181d430daaf48494eb476abffad4d37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width