Open
Description
Bug summary
The size of the text in fig.suptitle
is different if I specify the size of the text directly, or inside the fontdict={...}
Code for reproduction
import matplotlib.pyplot as plt
fig = 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{...})
and ax1.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