Title: OOification of the new examples from #10306 by afvincent · Pull Request #10393 · matplotlib/matplotlib · GitHub
Open Graph Title: OOification of the new examples from #10306 by afvincent · Pull Request #10393 · matplotlib/matplotlib
X Title: OOification of the new examples from #10306 by afvincent · Pull Request #10393 · matplotlib/matplotlib
Description: PR Summary This PR simply tries to make the examples added in #10306 a bit more consistent with the current trend of promoting the object-oriented API rather than the Pyplot one. I was planning to suggest the small changes in the original thread but the latter got merged while I was writing my post 🐑... Being there, this PR also slightly increase the title padding in title_xlabel_top.py, to make room for the tick labels and prevent a not very nice-looking overlap. Please note that this change could (should) be removed if in the future a feature like #9498 was going to be introduced in Matplotlib. Some questions that may still be open: Should we merge the one examples into a single one? (I do not remember where we are about having very short and simple examples vs more complex/comprehensive ones) If we prefer keeping two different files, should we make the names a bit more consistent? (e.g. tick_label_right.py <- tick_ylabel_right.py) PR Checklist Code is PEP 8 compliant: hopefully Documentation is sphinx and numpydoc compliant: CI will judge
Open Graph Description: PR Summary This PR simply tries to make the examples added in #10306 a bit more consistent with the current trend of promoting the object-oriented API rather than the Pyplot one. I was planning to ...
X Description: PR Summary This PR simply tries to make the examples added in #10306 a bit more consistent with the current trend of promoting the object-oriented API rather than the Pyplot one. I was planning to ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/10393
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:93580e9c-015b-7235-17ec-1514ffac4c7f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD9C:16D8FB:32CAC1:45DE21:6A5522D3 |
| html-safe-nonce | 6244b203079b274fd473f3deb0d1e364d68d4254e0597837cc1ba9c4490d7198 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDlDOjE2RDhGQjozMkNBQzE6NDVERTIxOjZBNTUyMkQzIiwidmlzaXRvcl9pZCI6Ijg4OTY0NjcwMTU4MDg2ODY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b0adfba361872fe0b6b0e323e1724a8c6dabc9f88430304adc5b4e2249d46a89 |
| hovercard-subject-tag | pull_request:167846439 |
| 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/10393/files |
| twitter:image | https://avatars.githubusercontent.com/u/17270724?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/17270724?s=400&v=4 |
| og:image:alt | PR Summary This PR simply tries to make the examples added in #10306 a bit more consistent with the current trend of promoting the object-oriented API rather than the Pyplot one. I was planning to ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 358dd24ad7465d20e3fae729b5b169d35b0dd7f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width