Title: [Bug]: wspace and hspace in subfigures not working · Issue #25511 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: wspace and hspace in subfigures not working · Issue #25511 · matplotlib/matplotlib
X Title: [Bug]: wspace and hspace in subfigures not working · Issue #25511 · matplotlib/matplotlib
Description: Bug summary wspace and hspace in Figure.subfigures do nothing. Code for reproduction import matplotlib.pyplot as plt figs = plt.figure().subfigures(2, 2, wspace=0, hspace=0) for fig in figs.flat: fig.subplots().plot([1, 2]) plt.show() Ac...
Open Graph Description: Bug summary wspace and hspace in Figure.subfigures do nothing. Code for reproduction import matplotlib.pyplot as plt figs = plt.figure().subfigures(2, 2, wspace=0, hspace=0) for fig in figs.flat: f...
X Description: Bug summary wspace and hspace in Figure.subfigures do nothing. Code for reproduction import matplotlib.pyplot as plt figs = plt.figure().subfigures(2, 2, wspace=0, hspace=0) for fig in figs.flat: f...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: wspace and hspace in subfigures not working","articleBody":"### Bug summary\n\n`wspace` and `hspace` in `Figure.subfigures` do nothing.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\n\r\nfigs = plt.figure().subfigures(2, 2, wspace=0, hspace=0)\r\nfor fig in figs.flat:\r\n fig.subplots().plot([1, 2])\r\nplt.show()\n```\n\n\n### Actual outcome\n\nSame figure independently of the values of hspace and wspace.\n\n### Expected outcome\n\nhttps://github.com/matplotlib/matplotlib/blob/b3bd929cf07ea35479fded8f739126ccc39edd6d/lib/matplotlib/figure.py#L1550-L1554\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nOS/X\n\n### Matplotlib Version\n\n3.7.1\n\n### Matplotlib Backend\n\nMacOSX\n\n### Python version\n\nPython 3.10.9\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nconda","author":{"url":"https://github.com/maurosilber","@type":"Person","name":"maurosilber"},"datePublished":"2023-03-20T11:06:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/25511/matplotlib/issues/25511"}
| 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:f82f69d0-344d-c4aa-cf3e-bfbc7fb5fc99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1CE:C4AF2:2EF1868:41603EF:6A63400C |
| html-safe-nonce | f4d99fd20476b3851124ac5dcb508c9bf89cd37155125c9e75adede70b36d584 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUNFOkM0QUYyOjJFRjE4Njg6NDE2MDNFRjo2QTYzNDAwQyIsInZpc2l0b3JfaWQiOiIyMDQ0NjUyNzkxMTY0NzgwNTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff5b168c662886ec99830418c29898b529d2f691c2982efefc9529480595f133 |
| hovercard-subject-tag | issue:1631883413 |
| 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/25511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a6b66d32cfcc872bb1712860b8c529383030673356c4bab783f88eb0397f99d/matplotlib/matplotlib/issues/25511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a6b66d32cfcc872bb1712860b8c529383030673356c4bab783f88eb0397f99d/matplotlib/matplotlib/issues/25511 |
| og:image:alt | Bug summary wspace and hspace in Figure.subfigures do nothing. Code for reproduction import matplotlib.pyplot as plt figs = plt.figure().subfigures(2, 2, wspace=0, hspace=0) for fig in figs.flat: f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maurosilber |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| 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 | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width