Title: Adding GridSpec.subplots? · Issue #14155 · matplotlib/matplotlib · GitHub
Open Graph Title: Adding GridSpec.subplots? · Issue #14155 · matplotlib/matplotlib
X Title: Adding GridSpec.subplots? · Issue #14155 · matplotlib/matplotlib
Description: A variant on #13280, that I'm opening as an issue for now as there was quite some pushback against #13280 so I won't bother implementing this proposal if there's the same pushback against it :) I'm proposing to add GridSpec.subplots() (o...
Open Graph Description: A variant on #13280, that I'm opening as an issue for now as there was quite some pushback against #13280 so I won't bother implementing this proposal if there's the same pushback against it :) I'm...
X Description: A variant on #13280, that I'm opening as an issue for now as there was quite some pushback against #13280 so I won't bother implementing this proposal if there's the same pushback again...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding GridSpec.subplots?","articleBody":"A variant on #13280, that I'm opening as an issue for now as there was quite some pushback against #13280 so I won't bother implementing this proposal if there's the same pushback against it :)\r\n\r\nI'm proposing to add GridSpec.subplots() (or .add_subplots(), depending on how we want to bikeshed it), such that\r\n```\r\naxs = plt.figure().add_gridspec(\r\n nrows, ncols, height_ratios=..., width_ratios=...).subplots()\r\n```\r\nis equivalent to\r\n```\r\naxs = plt.figure().subplots(\r\n nrows, ncols, gridspec_kw={\"height_ratios\": ..., \"width_ratios\": ...})\r\n```\r\nthe goal being just to get rid of the somewhat awkward `gridspec_kw` (it's a bunch of (kw)args passed down to another function, so we should just directly call that other function instead).\r\n\r\nThoughts?\r\n\r\nThis would also fix #1460, I'd say (as `subplot_kw` could be directly passed to GridSpec.subplots`).\r\n\r\nmpl master.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2019-05-07T14:18:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/14155/matplotlib/issues/14155"}
| 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:bfc79c2d-5382-242e-d0de-2cfe7a6e4fe7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 927E:FCD5E:148DC05:1AEFF75:6A51B924 |
| html-safe-nonce | 3af8389fd5141b63bcab395ded4b2d4123e39675804b3833363eab545ddc6790 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjdFOkZDRDVFOjE0OERDMDU6MUFFRkY3NTo2QTUxQjkyNCIsInZpc2l0b3JfaWQiOiI2NjQ5NDkzMDM5NzQzMDg4OTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17c1d9610b9a37ec187b7f951112c3092894c8175a17459e15d9781a74639e7a |
| hovercard-subject-tag | issue:441259467 |
| 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/14155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b88a5e426b13a784f21b4031884d5a65bd5151ddbe601a82195d471670e9e343/matplotlib/matplotlib/issues/14155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b88a5e426b13a784f21b4031884d5a65bd5151ddbe601a82195d471670e9e343/matplotlib/matplotlib/issues/14155 |
| og:image:alt | A variant on #13280, that I'm opening as an issue for now as there was quite some pushback against #13280 so I won't bother implementing this proposal if there's the same pushback against it :) I'm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width