Title: Recompute figsize-dependent parameters on resize · Issue #5824 · matplotlib/matplotlib · GitHub
Open Graph Title: Recompute figsize-dependent parameters on resize · Issue #5824 · matplotlib/matplotlib
X Title: Recompute figsize-dependent parameters on resize · Issue #5824 · matplotlib/matplotlib
Description: Edit: See #5824 (comment) for the doc related issue. Currently, applying tight_layout and resizing the figure do not commute (e.g., after subplots(2); tight_layout() and a manual maximization of the figure size, applying tight_layout aga...
Open Graph Description: Edit: See #5824 (comment) for the doc related issue. Currently, applying tight_layout and resizing the figure do not commute (e.g., after subplots(2); tight_layout() and a manual maximization of th...
X Description: Edit: See #5824 (comment) for the doc related issue. Currently, applying tight_layout and resizing the figure do not commute (e.g., after subplots(2); tight_layout() and a manual maximization of th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5824
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recompute figsize-dependent parameters on resize","articleBody":"Edit: See https://github.com/matplotlib/matplotlib/issues/5824#issuecomment-256202440 for the doc related issue.\n\nCurrently, applying tight_layout and resizing the figure do not commute (e.g., after `subplots(2); tight_layout()` and a manual maximization of the figure size, applying `tight_layout` again changes the margins). This is basically due to the fact that certain paddings (and text sizes) are in absolute units, which is fairly reasonable.\n\nHowever, it would be nice if an option was available to add a callback to figure resize events to auto-re-tightlayout when that happens.\n\n\u003e _The following part is solved by the yet-to-be-merged #5772_.\n\u003e This kind of feature may become even more useful now that #5588 (number of ticks determined from physical length of axis) has been merged, as the number of ticks should, well, also be adjusted when the figure is resized (or rather, the option to do so should be (easily) available).\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-01-10T07:52:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5824/matplotlib/issues/5824"}
| 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:24b4bc09-cfbe-dc3c-f442-bc1b60e34783 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B014:1EC0A2:9DB96:D01FE:6A5321C5 |
| html-safe-nonce | 1527652b2fc54e0b947d6aca6cdf73a965729866646ae9dd46f48306908a8fa8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDE0OjFFQzBBMjo5REI5NjpEMDFGRTo2QTUzMjFDNSIsInZpc2l0b3JfaWQiOiIzMDA1ODM0NzE1MDIwMzM3NjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e6cbfcc7dedcc081e6131d4da1843d7219dc4ae888f27f06d4c9bf7a1ef6e73 |
| hovercard-subject-tag | issue:125806427 |
| 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/5824/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4d29dd9dca28992fd298cdd45582435955a058e02d16dd37f930874a9c34aee/matplotlib/matplotlib/issues/5824 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4d29dd9dca28992fd298cdd45582435955a058e02d16dd37f930874a9c34aee/matplotlib/matplotlib/issues/5824 |
| og:image:alt | Edit: See #5824 (comment) for the doc related issue. Currently, applying tight_layout and resizing the figure do not commute (e.g., after subplots(2); tight_layout() and a manual maximization of th... |
| 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