Take for example this code example:
import numpy as np import matplotlib.pyplot as plt f = np.random.random(100) g = np.random.random(100) fig = plt.figure(figsize=(15,15)) fig.suptitle('Long Suptitle', fontsize=24) plt.subplot(121) plt.plot(f) plt.title('Very Long Title 1', fontsize=20) plt.subplot(122) plt.plot(g) plt.title('Very Long Title 2', fontsize=20) plt.subplots_adjust(top=0.85) plt.show()
The launch shows two subheadings with separate headings, but the general name of the picture "Long Suptitle" is not displayed.
However, if you remove figsize=(15,15) , then the common name of the picture will become visible again.
Is it possible to save suptitle() text when resizing a shape?
source share