Title: Redrawing canvas causes subplot positions to change when aspect='equal' used with rcParams['figure.autolayout'] = True · Issue #7648 · matplotlib/matplotlib · GitHub
Open Graph Title: Redrawing canvas causes subplot positions to change when aspect='equal' used with rcParams['figure.autolayout'] = True · Issue #7648 · matplotlib/matplotlib
X Title: Redrawing canvas causes subplot positions to change when aspect='equal' used with rcParams['figure.autolayout'] = True · Issue #7648 · matplotlib/matplotlib
Description: As the title states, subplots with equal aspect ratio drift around within the figure when the canvas is redrawn with figure.autolayout set. The following code demonstrates the issue import matplotlib.pyplot as plt plt.rcParams['figure.au...
Open Graph Description: As the title states, subplots with equal aspect ratio drift around within the figure when the canvas is redrawn with figure.autolayout set. The following code demonstrates the issue import matplotl...
X Description: As the title states, subplots with equal aspect ratio drift around within the figure when the canvas is redrawn with figure.autolayout set. The following code demonstrates the issue import matplotl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7648
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redrawing canvas causes subplot positions to change when aspect='equal' used with rcParams['figure.autolayout'] = True","articleBody":"As the title states, subplots with equal aspect ratio drift around within the figure when the canvas is redrawn with `figure.autolayout ` set. The following code demonstrates the issue\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\nplt.rcParams['figure.autolayout'] = True\r\n\r\nfig = plt.figure()\r\nax1 = fig.add_subplot(121, aspect='equal')\r\nax2 = fig.add_subplot(122, aspect='equal')\r\nfig.canvas.mpl_connect('button_press_event', lambda event: event.canvas.draw())\r\nfig.canvas.set_window_title('Click to redraw canvas')\r\nplt.show()\r\n```\r\n\r\nThe issue doesn't appear to occur with the default figure size, but if you resize the window horizontally the subplots drift around with each redraw until eventually settling on a position. \r\n\r\nPlatform: Windows 7\r\nmatplotlib: 1.5.3\r\npython: 2.7.12","author":{"url":"https://github.com/ndeadly","@type":"Person","name":"ndeadly"},"datePublished":"2016-12-20T14:15:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/7648/matplotlib/issues/7648"}
| 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:96fa3a94-f4d7-37f9-7028-5ba6ee8b3239 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEA6:4DD3F:101251E:155251A:6A533586 |
| html-safe-nonce | e8be3918de5da9083fffa6c5b14292a3f766cb51c64bf2a7203c27296ff877e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUE2OjRERDNGOjEwMTI1MUU6MTU1MjUxQTo2QTUzMzU4NiIsInZpc2l0b3JfaWQiOiIzOTAzNjkyODY5NDI1Mzc4Njk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5587e17512946a556eb9bf42c9b67a05a18ab57efbd093e14ab6b5fa2e593e2 |
| hovercard-subject-tag | issue:196683044 |
| 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/7648/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46946a78c8f0869bdd32308404dc26b14fe481aa564e807e896a03cbafcc42b3/matplotlib/matplotlib/issues/7648 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46946a78c8f0869bdd32308404dc26b14fe481aa564e807e896a03cbafcc42b3/matplotlib/matplotlib/issues/7648 |
| og:image:alt | As the title states, subplots with equal aspect ratio drift around within the figure when the canvas is redrawn with figure.autolayout set. The following code demonstrates the issue import matplotl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ndeadly |
| 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