Title: [ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ · Issue #24617 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ · Issue #24617 · matplotlib/matplotlib
X Title: [ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ · Issue #24617 · matplotlib/matplotlib
Description: Problem At least 2 of the arguments passed to Figure.__init__ do not have matching get_{kwarg}/set_{kwarg} methods on Figure which makes using fig.set(...) inconsistent with what can be done via Figure(...). xref #21549 which was motivat...
Open Graph Description: Problem At least 2 of the arguments passed to Figure.__init__ do not have matching get_{kwarg}/set_{kwarg} methods on Figure which makes using fig.set(...) inconsistent with what can be done via Fi...
X Description: Problem At least 2 of the arguments passed to Figure.__init__ do not have matching get_{kwarg}/set_{kwarg} methods on Figure which makes using fig.set(...) inconsistent with what can be done via Fi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24617
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__","articleBody":"### Problem\r\n\r\nAt least 2 of the arguments passed to `Figure.__init__` do not have matching `get_{kwarg}`/`set_{kwarg}` methods on `Figure` which makes using `fig.set(...)` inconsistent with what can be done via `Figure(...)`.\r\n\r\nxref #21549 which was motivated by this and includes an implementation of the solution (along with some additional refactoring).\r\n\r\n### Proposed solution\r\n\r\nSee #21549 for a majority of the implementation. cherry-picking commits from that branch and dropping the layout management refactoring is a very good start.\r\n\r\n - use alias mechanism for `size_inches` -\u003e `figsize`\r\n - add `get/set_subplotparams`\r\n - use alias mechanism from `layout` -\u003e `layout_engine`\r\n - tests!\r\n - whats new entry\r\n\r\n\r\nLabeling this as good first issue because it is limited scope and easy because there is an existing implementation. There will be a discussion of API consistency so I think familiarity with Matplotlib's explicit API would be very helpful.","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2022-12-04T16:39:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/24617/matplotlib/issues/24617"}
| 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:cbf49307-16b0-afef-a2aa-ce3b8fb8e7d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB24:150D9B:3C2145:4F2700:6A529279 |
| html-safe-nonce | 5b476cd08811019e30e8284d37376cd3486c55c1b4236cf4ef641adb2e266a7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjI0OjE1MEQ5QjozQzIxNDU6NEYyNzAwOjZBNTI5Mjc5IiwidmlzaXRvcl9pZCI6Ijc3NzMyMjAyOTQ0Mjk0MTQwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24ab856c7d5324d5f3fbf652de3e39ae8a4abc8b8e59210b506aafb6dddc9c6a |
| hovercard-subject-tag | issue:1474977418 |
| 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/24617/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eedd864ff2fa5a912fb399c65be1f97cc822690bd165520095dc3cec642be129/matplotlib/matplotlib/issues/24617 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eedd864ff2fa5a912fb399c65be1f97cc822690bd165520095dc3cec642be129/matplotlib/matplotlib/issues/24617 |
| og:image:alt | Problem At least 2 of the arguments passed to Figure.__init__ do not have matching get_{kwarg}/set_{kwarg} methods on Figure which makes using fig.set(...) inconsistent with what can be done via Fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width