Title: [Bug]: subfigure artists not drawn interactively · Issue #28384 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: subfigure artists not drawn interactively · Issue #28384 · matplotlib/matplotlib
X Title: [Bug]: subfigure artists not drawn interactively · Issue #28384 · matplotlib/matplotlib
Description: Bug summary When artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window. Code for reproduction $ ipython --matplotlib=qt Python 3.12.3 | packaged by conda-forge | (main, Apr 1...
Open Graph Description: Bug summary When artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window. Code for reproduction $ ipython --matplotlib=qt Python 3.12.3 ...
X Description: Bug summary When artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window. Code for reproduction $ ipython --matplotlib=qt Python 3.12.3 ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28384
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: subfigure artists not drawn interactively","articleBody":"### Bug summary\n\nWhen artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window.\n\n### Code for reproduction\n\n```Python\n$ ipython --matplotlib=qt\r\nPython 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0]\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 8.24.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import matplotlib.pyplot as plt\r\n\r\nIn [2]: fig = plt.figure()\r\n\r\nIn [3]: sfig1, sfig2 = fig.subfigures(ncols=2)\r\n\r\nIn [4]: sfig2.suptitle(\"My Title\")\r\nOut[4]: Text(0.5, 0.98, 'My Title')\r\n\r\nIn [5]: ax = sfig1.subplots()\r\n\r\nIn [6]: ax.plot([1, 3, 2])\r\nOut[6]: [\u003cmatplotlib.lines.Line2D at 0x73a220908ce0\u003e]\n```\n\n\n### Actual outcome\n\nApparently empty figure\r\n\r\n\n\n### Expected outcome\n\nIf I resize the window, the artists appear\r\n\r\n\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nUbuntu\n\n### Matplotlib Version\n\n`main`\n\n### Matplotlib Backend\n\nQtAgg and TkAgg\n\n### Python version\n\n3.12.3\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/rcomer","@type":"Person","name":"rcomer"},"datePublished":"2024-06-12T18:33:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/28384/matplotlib/issues/28384"}
| 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:06fd8b24-6344-8764-90f8-8e40263fd208 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC3A:14A013:299F97E:3839081:6A53ACC2 |
| html-safe-nonce | b367d03c0b554e55d36e11b4063881d8ce651e3492ccf88412c6adc5397f906b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzNBOjE0QTAxMzoyOTlGOTdFOjM4MzkwODE6NkE1M0FDQzIiLCJ2aXNpdG9yX2lkIjoiNzU5MTYzMTEzNDQ0Mzk0MTA1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b4547ff0f2b3942465a93f2675c06bc81eb90283e955442e3bb161d0986c7ea |
| hovercard-subject-tag | issue:2349450797 |
| 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/28384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6af2e11fdb9087e402bae5370a55c9c2d48da38b94aabb9b271008a38a8db675/matplotlib/matplotlib/issues/28384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6af2e11fdb9087e402bae5370a55c9c2d48da38b94aabb9b271008a38a8db675/matplotlib/matplotlib/issues/28384 |
| og:image:alt | Bug summary When artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window. Code for reproduction $ ipython --matplotlib=qt Python 3.12.3 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rcomer |
| 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