Title: Issue · GitHub
Open Graph Title: Issue · matplotlib/matplotlib
X Title: Issue · matplotlib/matplotlib
Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
Open Graph Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
X Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
Opengraph URL: https://github.com/matplotlib/matplotlib
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"regularize `get_window_extent`","articleBody":"The call signature on `get_window_extent` is not uniform, we should probably fix this. \n\n```\ntcaswell@eowyn:lib$ ack-grep 'def get_window_extent'\nmpl_toolkits/axisartist/axis_artist.py\n437: def get_window_extent(self, renderer):\n625: def get_window_extent(self, renderer):\n806: def get_window_extents(self, renderer):\n\nmatplotlib/axes/_base.py\n473: def get_window_extent(self, *args, **kwargs):\n\nmatplotlib/artist.py\n190: def get_window_extent(self, renderer):\n\nmatplotlib/lines.py\n531: def get_window_extent(self, renderer):\n\nmatplotlib/image.py\n1097: def get_window_extent(self, renderer=None):\n\nmatplotlib/text.py\n763: def get_window_extent(self, renderer=None, dpi=None):\n1285: def get_window_extent(self, renderer=None):\n2088: def get_window_extent(self, renderer=None):\n\nmatplotlib/figure.py\n490: def get_window_extent(self, *args, **kwargs):\n\nmatplotlib/offsetbox.py\n252: def get_window_extent(self, renderer):\n618: def get_window_extent(self, renderer):\n769: def get_window_extent(self, renderer):\n884: def get_window_extent(self, renderer):\n1058: def get_window_extent(self, renderer):\n1265: def get_window_extent(self, renderer):\n\nmatplotlib/patches.py\n490: def get_window_extent(self, renderer=None):\n\nmatplotlib/legend.py\n798: def get_window_extent(self, *args, **kwargs):\n\nmatplotlib/table.py\n288: def get_window_extent(self, renderer):\n\nmatplotlib/collections.py\n207: def get_window_extent(self, renderer):\n\n```\n- for `Axes` and `Figure` the arguments are ignored, in legend they are passed through to `Patch`'s . These should probably be given explicit arguments. \n- `Text` effectively implements a context manager on the `figure.dpi`. From the doc-string this seems like it is for making image maps for web images easy, but there has to be a better way to do this.\n- if we are going to let artists cache the renderer, it should happen at the artist level, not on a per-subclass basis\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2015-01-31T20:36:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4058/matplotlib/issues/4058"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:981ff02a-1986-030d-6bfd-f401d5a7bef3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABE6:3130DB:51BC44:6D2CE6:6A519A7C |
| html-safe-nonce | 15cc07ec478df5f9fb0060da462192e16d62be5f086122900eb712f318435585 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkU2OjMxMzBEQjo1MUJDNDQ6NkQyQ0U2OjZBNTE5QTdDIiwidmlzaXRvcl9pZCI6IjQ5MTY5NTAxODk0MTQxMjgyNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8810b54752445c6f43b6b6f162a1f7ed55aab3e4be234838371a5e37221dddad |
| hovercard-subject-tag | repository:1385122 |
| 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/matplotlib/matplotlib/issues/4058 |
| twitter:image | https://opengraph.githubassets.com/9261bf81ff8848b426c0823e67448cf51d35b63d999294ff18880398e6b5b195/matplotlib/matplotlib |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9261bf81ff8848b426c0823e67448cf51d35b63d999294ff18880398e6b5b195/matplotlib/matplotlib |
| og:image:alt | matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width