Title: Suptitle positioning messed up in 3.4.0 · Issue #19803 · matplotlib/matplotlib · GitHub
Open Graph Title: Suptitle positioning messed up in 3.4.0 · Issue #19803 · matplotlib/matplotlib
X Title: Suptitle positioning messed up in 3.4.0 · Issue #19803 · matplotlib/matplotlib
Description: If I run the following code: import matplotlib.pyplot as plt plt.subplots() plt.suptitle('SUPTITLE TEST') I get: which says that the title is placed in x=0.5, y=0.98 (which, according to the docs, is its default position). However if I d...
Open Graph Description: If I run the following code: import matplotlib.pyplot as plt plt.subplots() plt.suptitle('SUPTITLE TEST') I get: which says that the title is placed in x=0.5, y=0.98 (which, according to the docs, ...
X Description: If I run the following code: import matplotlib.pyplot as plt plt.subplots() plt.suptitle('SUPTITLE TEST') I get: which says that the title is placed in x=0.5, y=0.98 (which, according to th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19803
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suptitle positioning messed up in 3.4.0","articleBody":"If I run the following code:\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.subplots()\r\nplt.suptitle('SUPTITLE TEST')\r\n```\r\n\r\nI get:\r\n\r\n\r\n\r\nwhich says that the title is placed in `x=0.5, y=0.98` (which, according to the docs, is its default position). However if I do:\r\n\r\n```python\r\nplt.suptitle('SUPTITLE TEST', x=0.5, y=0.98)\r\n```\r\n\r\nit still says that the text is placed in `x=0.5, y=0.98`, but it is completely disappeared:\r\n\r\n\r\n\r\nI think because it goes out of the image boundaries, as if I do:\r\n\r\n```python\r\nplt.suptitle('SUPTITLE TEST', y=0.93)\r\n```\r\n\r\nI get the title vertically cut, instead of obtaining the space to accommodate it:\r\n\r\n\r\n\r\nAlso, setting `x` to any value but not setting `y`, such as in:\r\n\r\n```python\r\nplt.suptitle('SUPTITLE TEST', x=0.5)\r\n```\r\n\r\nmakes the title disappear as well:\r\n\r\n\r\n\r\nI can also cut the title horizontally, for example with:\r\n\r\n```python\r\nplt.suptitle('SUPTITLE TEST', x=0.1, y=0.92)\r\n```\r\n\r\nwhich produces:\r\n\r\n\r\n\r\nBasically I cannot position the title anymore, while it was easily doable until 3.3.4.\r\n\r\nThank you.\r\n\r\n**Matplotlib version**\r\n * Operating system: any\r\n * Matplotlib version: 3.4.0 \r\n * Matplotlib backend: module://ipykernel.pylab.backend_inline \r\n * Python version: 3.9.2","author":{"url":"https://github.com/emazep","@type":"Person","name":"emazep"},"datePublished":"2021-03-28T02:09:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/19803/matplotlib/issues/19803"}
| 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:1a19911b-0961-d424-5b29-4db6923b4f88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8CE:141904:172DDC1:1E6B200:6A51C43C |
| html-safe-nonce | 721062b5499925f4c198fd2827a1ee92b250d1ab3836f36d98fd910beb6b4980 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOENFOjE0MTkwNDoxNzJEREMxOjFFNkIyMDA6NkE1MUM0M0MiLCJ2aXNpdG9yX2lkIjoiOTM0Njc4MTgwNjcyOTQ3MjYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7cef13fb8fb5405c55fc4167030d2acd2c803debc68c6a62887b34586eec7a55 |
| hovercard-subject-tag | issue:842642485 |
| 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/19803/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2dbce0045ecd94ec72a9c28432573a66fa624cba3fa44a0dc1ef7dadd6beeb13/matplotlib/matplotlib/issues/19803 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2dbce0045ecd94ec72a9c28432573a66fa624cba3fa44a0dc1ef7dadd6beeb13/matplotlib/matplotlib/issues/19803 |
| og:image:alt | If I run the following code: import matplotlib.pyplot as plt plt.subplots() plt.suptitle('SUPTITLE TEST') I get: which says that the title is placed in x=0.5, y=0.98 (which, according to the docs, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emazep |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width