-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Weird behaviour of suptitle() when horizontalalignment is not 'center' #12197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is all expected. The The
I will close this because I don't think there is anything wrong with the library here. Feel free to reopen in case you disagree. |
Thank you for your answer! Do you agree this should be documented? |
There is the Text alignment example which shows the different alignments. At which point exactly do you think the documentation should be extended? We're always open to improvements of the docs, so feel free to make a suggestion here. |
Feel free to open a PR. |
Since I would have though maybe documenting (reopening this to let the discussion evolve) |
It's already documented separately, because the defaults are different from |
Should I also need to generate any file? Thanks. |
Bug report
Bug summary
horizontalalignment = 'left'
aligns the title on the right,horizontalalignment = 'right'
aligns a short title on the left,horizontalalignment = 'right'
displaces a longer title on the far leftCode for reproduction
Actual outcome
Left alignment test, short title

Right alignment test, short title

Right alignment test, longer title

Expected outcome
The following code manually sets the figure title at the expected position:
Which gives:

Matplotlib version
The text was updated successfully, but these errors were encountered: