Title: plt.subplots for already existing Figure · Issue #5139 · matplotlib/matplotlib · GitHub
Open Graph Title: plt.subplots for already existing Figure · Issue #5139 · matplotlib/matplotlib
X Title: plt.subplots for already existing Figure · Issue #5139 · matplotlib/matplotlib
Description: The plt.subplots function in very practical for creating a large number of axes simultaneously, but (afaict) always puts them on a new figure, which is impractical e.g. when embedding matplotlib in a GUI, where a Figure object may be cre...
Open Graph Description: The plt.subplots function in very practical for creating a large number of axes simultaneously, but (afaict) always puts them on a new figure, which is impractical e.g. when embedding matplotlib in...
X Description: The plt.subplots function in very practical for creating a large number of axes simultaneously, but (afaict) always puts them on a new figure, which is impractical e.g. when embedding matplotlib in...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plt.subplots for already existing Figure","articleBody":"The `plt.subplots` function in very practical for creating a large number of axes simultaneously, but (afaict) always puts them on a new figure, which is impractical e.g. when embedding matplotlib in a GUI, where a Figure object may be created early on and then populated with some axes later.\nI would thus suggest providing the same functionality to already existing Figure objects, e.g. by moving the implementation of `plt.subplots` to a `Figure.add_subplots` (or `Figure.set_subplots`, as it may make sense to clear the figure before) method, and have the `plt.subplots` function be a thin wrapper that creates the Figure and then calls its `add_subplots` method.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2015-09-25T06:00:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/5139/matplotlib/issues/5139"}
| 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:85e91713-6729-f570-dcc7-4faecd9fbd30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F54:147EC0:EBE5FF:13A9864:6A52919F |
| html-safe-nonce | d939ec88a5580de2593bd4f287b09ec9a962a1fb56f90c12af74a46858b01c47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjU0OjE0N0VDMDpFQkU1RkY6MTNBOTg2NDo2QTUyOTE5RiIsInZpc2l0b3JfaWQiOiI1Njk3NjYyNjI1NDg5NTIzMTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 462595f3945e9e6739495e19e5d623414c89f2c8ee27a3b3d312f3de0b45ca34 |
| hovercard-subject-tag | issue:108269346 |
| 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/5139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c25b252b4d593bbe26402b5a3abc96f4f39dc7d968cd5959eeb79556c95024e/matplotlib/matplotlib/issues/5139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c25b252b4d593bbe26402b5a3abc96f4f39dc7d968cd5959eeb79556c95024e/matplotlib/matplotlib/issues/5139 |
| og:image:alt | The plt.subplots function in very practical for creating a large number of axes simultaneously, but (afaict) always puts them on a new figure, which is impractical e.g. when embedding matplotlib in... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width