Closed
Description
I noticed this when running the documentation, suptitle
does not correctly obey the size
argument:
y, x = np.mgrid[-4:2:200j, -4:2:200j]
z = 10 * np.cos(x**2 + y**2)
fig, (ax1, ax2) = plt.subplots(ncols=2, figsize=(8, 4.5))
ax1.imshow(z)
ax1.set_title('First title')
ax2.imshow(z)
ax2.set_title('Second title')
fig.suptitle('Suptitle', size='x-large')
for c in fig.get_children():
if isinstance(c, mtext.Text):
print(c.get_size())
After 1000 trials, 1.4.3 is consistently large, while 1.5.x is more often than not the default size:
$ sort mpl143 | uniq -c
1000 17.28
$ sort mpl15x | uniq -c
616 12.0
384 17.28