Title: Changes to figure.clf() and suplot_adjust by fredrik-1 · Pull Request #11086 · matplotlib/matplotlib · GitHub
Open Graph Title: Changes to figure.clf() and suplot_adjust by fredrik-1 · Pull Request #11086 · matplotlib/matplotlib
X Title: Changes to figure.clf() and suplot_adjust by fredrik-1 · Pull Request #11086 · matplotlib/matplotlib
Description: I wrote some code to solve #11059 figure.clf() now sets the subplots parameters to their default values. This is a behavior that I have missed before and I think that it is the correct thing to do. A new keyword rc_default is added to subplots_adjust to make it simpler to get back to default values when tuning the subplot parameters The SubplotParams object has got a __repr__ function with the important attributes such that it is easier to see and print what the subplot parameters are The SubplotParams object has got a get function to make it easier to get its parameters The code in SubplotParams.update has been written more compact A few tests have been written to test the old and new behavior The docstrings has been changed such that they are more complete and (mostly at least) follows the new docstring directive I think that these changes make it easier to work with and understand the subplot parameters without changing the interface to much. PR Checklist Has Pytest style unit tests Code is PEP 8 compliant Documentation is sphinx and numpydoc compliant
Open Graph Description: I wrote some code to solve #11059 figure.clf() now sets the subplots parameters to their default values. This is a behavior that I have missed before and I think that it is the correct thing to do...
X Description: I wrote some code to solve #11059 figure.clf() now sets the subplots parameters to their default values. This is a behavior that I have missed before and I think that it is the correct thing to do...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/11086
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:30bef09a-b651-562c-3f1e-0f3628ebbac1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 96A0:2FC742:84E92E:AFEC77:6A531084 |
| html-safe-nonce | 4d0cb6ca12c2271402b95bec613ea959d033ead5f40e9be9dc553e2c6947c9fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkEwOjJGQzc0Mjo4NEU5MkU6QUZFQzc3OjZBNTMxMDg0IiwidmlzaXRvcl9pZCI6Ijg0OTM5NjM3NTU3MTMxMzg4MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1cf9e1180165bf2036a837c10b1f2e90b056c4a3652e69533f0a52cdca240051 |
| hovercard-subject-tag | pull_request:182696776 |
| 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/11086/files |
| twitter:image | https://avatars.githubusercontent.com/u/29602156?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/29602156?s=400&v=4 |
| og:image:alt | I wrote some code to solve #11059 figure.clf() now sets the subplots parameters to their default values. This is a behavior that I have missed before and I think that it is the correct thing to do... |
| 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