Title: ENH: add two new modes for 'adjustable' option by astrofrog · Pull Request #8700 · matplotlib/matplotlib · GitHub
Open Graph Title: ENH: add two new modes for 'adjustable' option by astrofrog · Pull Request #8700 · matplotlib/matplotlib
X Title: ENH: add two new modes for 'adjustable' option by astrofrog · Pull Request #8700 · matplotlib/matplotlib
Description: PR Summary This adds two new modes for the adjustable= option (in set_aspect and in the initializer for axes). The new modes are 'xlim' and 'ylim' - these behave like the 'datalim' option except that only the x or y limits are adjusted, in a deterministic way. The changes are backward-compatible. It looked like there were no (?) tests for adjustable='datalim', so I've covered that in the test I added. Question: I need to add an entry to 'what's new', but it looks like doc/users/whats_new.rst refers to 2.0 not 2.1? PR Checklist Has Pytest style unit tests Code is PEP 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/whats_new.rst if major new feature Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way (I wasn't sure if I was supposed to tick the above, or the reviewers, maybe this could be made clearer?) cc @tacaswell - as discussed on Gitter
Open Graph Description: PR Summary This adds two new modes for the adjustable= option (in set_aspect and in the initializer for axes). The new modes are 'xlim' and 'ylim' - these behave like the 'datal...
X Description: PR Summary This adds two new modes for the adjustable= option (in set_aspect and in the initializer for axes). The new modes are 'xlim' and 'ylim' - these behave lik...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/8700
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:060edcaf-0367-ca2b-2d37-7ef53697afc5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A20A:1F69C6:2F58DB:40CF40:6A5338D8 |
| html-safe-nonce | aa58540fe3b8e4eca270949efb58beed4a2e8bf5e5cda1cf8884e489b162a9bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjBBOjFGNjlDNjoyRjU4REI6NDBDRjQwOjZBNTMzOEQ4IiwidmlzaXRvcl9pZCI6IjE0NTIzODEwNDAxNzgwNTEyODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a89dc1f4ab32c0c8fefb47c1e09397ec974a7ca5ea51f78f0396e7d050aabe29 |
| hovercard-subject-tag | pull_request:123517493 |
| 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/8700/files |
| twitter:image | https://avatars.githubusercontent.com/u/314716?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/314716?s=400&v=4 |
| og:image:alt | PR Summary This adds two new modes for the adjustable= option (in set_aspect and in the initializer for axes). The new modes are 'xlim' and 'ylim' - these behave like the 'datal... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width