Title: Long axis title alters xaxis length and direction with `plt.tight_layout()` · Issue #4413 · matplotlib/matplotlib · GitHub
Open Graph Title: Long axis title alters xaxis length and direction with `plt.tight_layout()` · Issue #4413 · matplotlib/matplotlib
X Title: Long axis title alters xaxis length and direction with `plt.tight_layout()` · Issue #4413 · matplotlib/matplotlib
Description: I originally reported this as a seaborn issue, but it turns out that it is the tight_layout property that causes the xaxis to get narrower, then reverse and eventually throw an error if the axis title is too long. See this example notebo...
Open Graph Description: I originally reported this as a seaborn issue, but it turns out that it is the tight_layout property that causes the xaxis to get narrower, then reverse and eventually throw an error if the axis ti...
X Description: I originally reported this as a seaborn issue, but it turns out that it is the tight_layout property that causes the xaxis to get narrower, then reverse and eventually throw an error if the axis ti...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4413
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Long axis title alters xaxis length and direction with `plt.tight_layout()`","articleBody":"I originally reported this as a [seaborn issue](https://github.com/mwaskom/seaborn/issues/543#issuecomment-99650779), but it turns out that it is the `tight_layout` property that causes the xaxis to get narrower, then reverse and eventually throw an error if the axis title is too long. See [this example notebook](http://nbviewer.ipython.org/github/joelostblom/test_ipynbs/blob/master/seaborn_long_titles.ipynb) for details using both `matplotlib` and `seaborn`.\n\nAs I mentioned on the seaborn page, I don't think this is especially important and it's easy for the user to adjust by shrinking or splitting the title. I was just confused initially when my plots changed direction on the axis and didn't immediately relate it to the title length. Maybe a warning message can pop up when the axis title is very long, saying that it might have unexpected effects on the plot appearance?\n","author":{"url":"https://github.com/joelostblom","@type":"Person","name":"joelostblom"},"datePublished":"2015-05-07T14:02:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/4413/matplotlib/issues/4413"}
| 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:6e4f994f-6c56-fd82-df7e-c86a3fee1398 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C126:305538:36AB435:4B03954:6A54B0A3 |
| html-safe-nonce | e2370f5556b37799b5c7b62dbef5e0a1c3c10182613b103e13b491fb509229a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTI2OjMwNTUzODozNkFCNDM1OjRCMDM5NTQ6NkE1NEIwQTMiLCJ2aXNpdG9yX2lkIjoiNjgxODQ5NDk3MzQzNDE3OTc0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2c3d749ef26cf434e09edb591af218d7e215d98d209a486ed320f02c3462908 |
| hovercard-subject-tag | issue:73998351 |
| 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/4413/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95cddeb488af10f8c141cbb699520eeaeea00644c7a77d42e7427b08c1f2eca3/matplotlib/matplotlib/issues/4413 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95cddeb488af10f8c141cbb699520eeaeea00644c7a77d42e7427b08c1f2eca3/matplotlib/matplotlib/issues/4413 |
| og:image:alt | I originally reported this as a seaborn issue, but it turns out that it is the tight_layout property that causes the xaxis to get narrower, then reverse and eventually throw an error if the axis ti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joelostblom |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width