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
FontProperties size and weight ignored by figure.suptitle #6996
Comments
Sigh, 2 steps forward, one step back. I think checking if |
Sorry for going off-topic, but while you guys are working on a permanent fix - can you possibly suggest a temporary workaround? We have recently updated matplotlib on our production system and the titles are now all over-sized. Should I just use a text box instead? Thanks! EDIT: Please never mind. I can use fig.title instead. |
I'm doing this as a workaround:
Edited: fixed styling after finding back ticks on iOS keyboard... |
dmkent, thanks for a super quick reply! I tried your workaround and it indeed works! However, I then noticed that when I print a 4-line suptitle, the last line of the text spills under the top edge of the plot. Using fig.title seems to avoid this problem. Go figure. |
Passing a FontProperties object to suptitle used to allow setting of font size and weight (in 1.4.*) however #3011 means the defaults from rcParams now override the font properties values.
Issue is somewhere in figure.py#L540.
Happy to put a PR together but not sure on best approach to solve.
Should we check to see if fontproperties is present before overriding? Do other methods handle this somewhere?
This used to work:
The text was updated successfully, but these errors were encountered: