Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug summary
The size of the text infig.suptitle
is different if I specify the size of the text directly, or inside thefontdict={...}
Code for reproduction
importmatplotlib.pyplotaspltfig=plt.figure(figsize=(8,3),layout='constrained')f0,f1=fig.subfigures(1,2)f0.suptitle('xxxXXX',fontdict=dict(family='Candara',size=30))f1.suptitle('xxxXXX',size=30,fontdict=dict(family='Candara'))plt.show()
Actual outcome
Expected outcome
I expected text of the same size.
In the example, I have used subfigures but using a figure (twice) I had the same results.
Further, using a single figure with 2 subplots,ax0.set_title(..., size=..., fontdict{...})
andax1.set_title(..., fontdict={..., size=...})
gives titles with the same size.
Additional information
No response
Operating system
Suse Tumbleweed
Matplotlib Version
3.6.3
Matplotlib Backend
QtAgg
Python version
3.11.6
Jupyter version
Ipython 8.18.0
Installation
Linux package manager