Title: [ENH]: enable passing of projection keyword to Axes.inset_axes · Issue #22630 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: enable passing of projection keyword to Axes.inset_axes · Issue #22630 · matplotlib/matplotlib
X Title: [ENH]: enable passing of projection keyword to Axes.inset_axes · Issue #22630 · matplotlib/matplotlib
Description: Problem Most methods to create an Axes instance (e.g. Figure.add_axes, pyplot.subplot) allow passing of the projection keyword in order to return an instance of a subclass of Axes. It would be useful if Axes.inset_axes could do the same....
Open Graph Description: Problem Most methods to create an Axes instance (e.g. Figure.add_axes, pyplot.subplot) allow passing of the projection keyword in order to return an instance of a subclass of Axes. It would be usef...
X Description: Problem Most methods to create an Axes instance (e.g. Figure.add_axes, pyplot.subplot) allow passing of the projection keyword in order to return an instance of a subclass of Axes. It would be usef...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: enable passing of projection keyword to Axes.inset_axes","articleBody":"### Problem\r\n\r\nMost methods to create an `Axes` instance (e.g. [Figure.add_axes](https://matplotlib.org/stable/api/figure_api.html?highlight=add_axes#matplotlib.figure.Figure.add_axes), [pyplot.subplot](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplot.html?highlight=subplot#matplotlib.pyplot.subplot)) allow passing of the `projection` keyword in order to return an instance of a subclass of `Axes`. It would be useful if [Axes.inset_axes](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.inset_axes.html?highlight=inset_axes#matplotlib.axes.Axes.inset_axes) could do the same.\r\n\r\nSee also #22608 where there was some agreement that this would be useful, but that was not the right solution.\r\n\r\n### Proposed solution\r\n\r\nI'm unfamilar with the Matplotlib codebase, but I _think_ the relevant functionality is contained within [Figure._process_projection_requirements](https://github.com/matplotlib/matplotlib/blob/09b17b128440e18cec4a0958dd2dc5b86c9bd146/lib/matplotlib/figure.py#L1524). So perhaps `inset_axes` could reuse that somehow.","author":{"url":"https://github.com/rcomer","@type":"Person","name":"rcomer"},"datePublished":"2022-03-09T15:09:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22630/matplotlib/issues/22630"}
| 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:cf559a21-feea-c53b-5205-735141c0e0ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8A6:146DBE:B4AF:E320:6A524B34 |
| html-safe-nonce | 46dd1d9d6b895fead23c646afd2a7ee6781301eeb7c2aea204c9dc52be2e49dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEE2OjE0NkRCRTpCNEFGOkUzMjA6NkE1MjRCMzQiLCJ2aXNpdG9yX2lkIjoiNTEwNDUxMzAyOTMwNzI5NzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4cad9ae0b021f3144317c91add6c5ba5a3beef7a1645116aa27a2a2111aa0cc1 |
| hovercard-subject-tag | issue:1164067178 |
| 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/22630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c100191f7574df420505a70de242246e43bd138c7765191bc97b796db48c60ae/matplotlib/matplotlib/issues/22630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c100191f7574df420505a70de242246e43bd138c7765191bc97b796db48c60ae/matplotlib/matplotlib/issues/22630 |
| og:image:alt | Problem Most methods to create an Axes instance (e.g. Figure.add_axes, pyplot.subplot) allow passing of the projection keyword in order to return an instance of a subclass of Axes. It would be usef... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rcomer |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width