Title: Propagate Axes class and kwargs for twinx and twiny by cmp0xff · Pull Request #29325 · matplotlib/matplotlib · GitHub
Open Graph Title: Propagate Axes class and kwargs for twinx and twiny by cmp0xff · Pull Request #29325 · matplotlib/matplotlib
X Title: Propagate Axes class and kwargs for twinx and twiny by cmp0xff · Pull Request #29325 · matplotlib/matplotlib
Description: PR summary Why is this change necessary? Users may wish to inherit matplotlib.axes.Axes, see e.g. https://stackoverflow.com/q/48593124. In such applications, twinx / twiny in the subclass should return subclass instances, instead of Axes. If the subclass supports additional kwargs, twinx / twiny should also be able to accept these extra arguments. What problem does it solve? The proposed changes fix the behaviour of the methods mentioned above.. What is the reasoning for this implementation? We try to keep the changes to a minimum and maintain current behaviours. PR checklist "closes #0000" is in the body of the PR description to link the related issue new and changed code is tested Plotting related features are demonstrated in an example New Features and API Changes are noted with a directive and release note Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Why is this change necessary? Users may wish to inherit matplotlib.axes.Axes, see e.g. https://stackoverflow.com/q/48593124. In such applications, twinx / twiny in the subclass should ...
X Description: PR summary Why is this change necessary? Users may wish to inherit matplotlib.axes.Axes, see e.g. https://stackoverflow.com/q/48593124. In such applications, twinx / twiny in the subclass should ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/29325
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3effdc2b-13b0-a6d3-96f2-0cce4d41402f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D0A6:1CFEED:E3ED99:12DE051:6A51B842 |
| html-safe-nonce | 433d0e22e1d73714f33213561d14500c5881ea5f33e14c3ca1701d5b572a1558 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEE2OjFDRkVFRDpFM0VEOTk6MTJERTA1MTo2QTUxQjg0MiIsInZpc2l0b3JfaWQiOiIxODM5MDUxMTA4OTc2Mjc3NTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a7feb186e077c619fcfea627c2a624b3b1b4833b5039c38a5959b733691405bf |
| hovercard-subject-tag | pull_request:2237618554 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pull/29325/files |
| twitter:image | https://avatars.githubusercontent.com/u/5564164?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5564164?s=400&v=4 |
| og:image:alt | PR summary Why is this change necessary? Users may wish to inherit matplotlib.axes.Axes, see e.g. https://stackoverflow.com/q/48593124. In such applications, twinx / twiny in the subclass should ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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