Title: [MNT]: Analyse, define and document Artist.axes · Issue #31118 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Analyse, define and document Artist.axes · Issue #31118 · matplotlib/matplotlib
X Title: [MNT]: Analyse, define and document Artist.axes · Issue #31118 · matplotlib/matplotlib
Description: Summary The situation is currently mixed and not well-defined, e.g. matplotlib/lib/matplotlib/artist.py Lines 215 to 218 in 45caf0e try: self.axes = None except AttributeError: # Handle self.axes as a read-only property, as in Figure. do...
Open Graph Description: Summary The situation is currently mixed and not well-defined, e.g. matplotlib/lib/matplotlib/artist.py Lines 215 to 218 in 45caf0e try: self.axes = None except AttributeError: # Handle self.axes a...
X Description: Summary The situation is currently mixed and not well-defined, e.g. matplotlib/lib/matplotlib/artist.py Lines 215 to 218 in 45caf0e try: self.axes = None except AttributeError: # Handle self.axes a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31118
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Analyse, define and document Artist.axes","articleBody":"### Summary\n\nThe situation is currently mixed and not well-defined, e.g.\n\n- https://github.com/matplotlib/matplotlib/blob/45caf0e2fe9ff5120939dcb270793a867cf153cc/lib/matplotlib/artist.py#L215-L218\n \u003cs\u003edoes always raise AFAICS\u003c/s\u003e should not be there, because Artist has an Axes property.\n- Semantics: Loosely speaking Artist. axes is the Axes the Artist is in. Do we need to specify this explicitly? Who has the authority to set this? Likely only `Axes.add_artist`?\n- Semantics 2: Figure redefines the property to \"The list of Axes in the figure\"\n- Some Artist subclasses define property setters\n- Should Artist.axes be public at all or is it an implementation detail.\n- we should have one place where we document the logic behind all this. Could e.g. be with the property.\n- probably more ...\n\n### Proposed fix\n\n_No response_","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2026-02-08T08:37:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/31118/matplotlib/issues/31118"}
| 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:64dd158e-6f5c-0144-a280-37c9a0202237 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7A6:234E06:1975D05:21D258A:6A52C506 |
| html-safe-nonce | 8287768a85f76421762ada2c4052f3ea5e62bcbf4b804c41e9c364b4b2ea7a84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0E2OjIzNEUwNjoxOTc1RDA1OjIxRDI1OEE6NkE1MkM1MDYiLCJ2aXNpdG9yX2lkIjoiMzI2NDE2MTg0OTUyNTA2MDg3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b9f2abaf76e9805501040e4fd7b963062b6ca2507fcb36450b1a957d0445c02 |
| hovercard-subject-tag | issue:3912304589 |
| 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/31118/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a376ab17cd20dda3fb58c935e1081c1017a026c9f29ee68c1c4b920ea82c739b/matplotlib/matplotlib/issues/31118 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a376ab17cd20dda3fb58c935e1081c1017a026c9f29ee68c1c4b920ea82c739b/matplotlib/matplotlib/issues/31118 |
| og:image:alt | Summary The situation is currently mixed and not well-defined, e.g. matplotlib/lib/matplotlib/artist.py Lines 215 to 218 in 45caf0e try: self.axes = None except AttributeError: # Handle self.axes a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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