Title: [Bug]: Subplot title does not obey padding · Issue #21394 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Subplot title does not obey padding · Issue #21394 · matplotlib/matplotlib
X Title: [Bug]: Subplot title does not obey padding · Issue #21394 · matplotlib/matplotlib
Description: Bug summary Last subplot title does not obey padding. Code for reproduction import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({ "Austria" : [1,2,3,4,5], "Belgium" : [6,7,8,9,10], "France" : [11,12,13,14,15] }, index =...
Open Graph Description: Bug summary Last subplot title does not obey padding. Code for reproduction import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({ "Austria" : [1,2,3,4,5], "Belgium" : [6,7,8,9,10]...
X Description: Bug summary Last subplot title does not obey padding. Code for reproduction import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({ "Austria" : [1,2,3,4,5], "Belgium&...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21394
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Subplot title does not obey padding","articleBody":"### Bug summary\n\nLast subplot title does not obey padding.\n\n### Code for reproduction\n\n```python\nimport pandas as pd\r\nimport matplotlib.pyplot as plt\r\ndf = pd.DataFrame({ \"Austria\" : [1,2,3,4,5],\r\n \"Belgium\" : [6,7,8,9,10],\r\n \"France\" : [11,12,13,14,15] },\r\n index = pd.to_datetime(['2000-01-01', '2000-01-02', '2000-01-03', '2000-01-04', '2000-01-05']))\r\n\r\ncountryList = df.columns\r\n\r\nfig, axs = plt.subplots(len(countryList), 1, figsize = (15, len(countryList) * 5), sharex = True)\r\n\r\nfor i, c in enumerate(countryList):\r\n axs[i].bar(df.index, df[c])\r\n axs[i].set_title(c, pad=-14)\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\n\"France\" subplot title should be aligned as the previous ones.\n\n### Operating system\n\nWindows 10 x64\n\n### Matplotlib Version\n\n3.4.3\n\n### Matplotlib Backend\n\nmodule://matplotlib_inline.backend_inline\n\n### Python version\n\nPython 3.8.5\n\n### Jupyter version\n\njupyter notebook v6.4.5\n\n### Other libraries\n\n_No response_\n\n### Installation\n\npip\n\n### Conda channel\n\n_No response_","author":{"url":"https://github.com/cipriantrofin","@type":"Person","name":"cipriantrofin"},"datePublished":"2021-10-20T10:15:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21394/matplotlib/issues/21394"}
| 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:b3de3a75-2cea-62fb-e273-96cb6e27530b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4FE:191DCC:4EA209:66ED91:6A52FFC0 |
| html-safe-nonce | 7d4232458a19173a5e6ba76172aef930f3a5208f0d107cedf70455fc2cd26d40 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEZFOjE5MURDQzo0RUEyMDk6NjZFRDkxOjZBNTJGRkMwIiwidmlzaXRvcl9pZCI6Ijc5NzQyNzk2NTI0Mzg4MzQ1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4afb42177c3487951b3af1905563384e6311133dd22001b53931f337e8a96efa |
| hovercard-subject-tag | issue:1031231888 |
| 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/21394/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ff1a5468d0fb53543c1f86be1e020f112795225467b23e89e8f4f415e693c4c/matplotlib/matplotlib/issues/21394 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ff1a5468d0fb53543c1f86be1e020f112795225467b23e89e8f4f415e693c4c/matplotlib/matplotlib/issues/21394 |
| og:image:alt | Bug summary Last subplot title does not obey padding. Code for reproduction import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({ "Austria" : [1,2,3,4,5], "Belgium" : [6,7,8,9,10]... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cipriantrofin |
| 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