Title: [ENH]: generalize artists opting in-to auto limits · Issue #25139 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: generalize artists opting in-to auto limits · Issue #25139 · matplotlib/matplotlib
X Title: [ENH]: generalize artists opting in-to auto limits · Issue #25139 · matplotlib/matplotlib
Description: Problem This is triggered by #25127 most recently, but this is a discussion we have had a couple of times. The core of the problem is that users have different expectations about what things will automatically adjust the axes limits (or ...
Open Graph Description: Problem This is triggered by #25127 most recently, but this is a discussion we have had a couple of times. The core of the problem is that users have different expectations about what things will a...
X Description: Problem This is triggered by #25127 most recently, but this is a discussion we have had a couple of times. The core of the problem is that users have different expectations about what things will a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: generalize artists opting in-to auto limits","articleBody":"### Problem\n\nThis is triggered by #25127 most recently, but this is a discussion we have had a couple of times.\r\n\r\nThe core of the problem is that users have different expectations about what things will automatically adjust the axes limits (or not) in autolim mode. Currently `Lines`, `Patches` and `AxesImage` obligatorily participate https://github.com/matplotlib/matplotlib/blob/a046ee3febac399869c3eb6b15b8e669e37058ee/lib/matplotlib/axes/_base.py#L2459-L2483 and collections may optionally participate, but only when they are added https://github.com/matplotlib/matplotlib/blob/a046ee3febac399869c3eb6b15b8e669e37058ee/lib/matplotlib/axes/_base.py#L2260-L2273 \n\n### Proposed solution\n\nThe proposed solution is to:\r\n\r\n - move the `_update_line_limits` and friends to the respective Artists\r\n - add an analogous method to the base `Artist` (probably defaulting to failure)\r\n - add a \"I would like to particpate in autolimiting!\" flag to base `Artist`\r\n - in `relim` look at the flag and call the newly generalized method above on any artists that opt-in\r\n\r\n\r\nThis will involved a little bit of public API (how to set the state to opt-in) and a bunch of private API (what should the signature of the method be).","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2023-02-02T22:21:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/25139/matplotlib/issues/25139"}
| 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:70c2520a-a2d9-5438-1bf9-88f5e3a379e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3B4:25C27F:14D5E73:1B9DFA7:6A52AD54 |
| html-safe-nonce | 3469c415847803728bb475df3c3607a34240b5608b97663c8b43ebdbe5cc7283 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0I0OjI1QzI3RjoxNEQ1RTczOjFCOURGQTc6NkE1MkFENTQiLCJ2aXNpdG9yX2lkIjoiMzA2MDQzNjg2MTg4NzYyMjQ4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d8e1c39598bcb2eaaad8f3bb4496a6697f52825baef17a26ff2d1670ba561a0 |
| hovercard-subject-tag | issue:1568872996 |
| 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/25139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc65c83262aed39eb3a23d7287ac9617be1e2511238d3c6105e30c19b4af1bf3/matplotlib/matplotlib/issues/25139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc65c83262aed39eb3a23d7287ac9617be1e2511238d3c6105e30c19b4af1bf3/matplotlib/matplotlib/issues/25139 |
| og:image:alt | Problem This is triggered by #25127 most recently, but this is a discussion we have had a couple of times. The core of the problem is that users have different expectations about what things will a... |
| 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 | 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