matplotlib set title of figure with subplots code example
Example 1: matplotlib title
import matplotlib.pyplot as plt
plt.title('TITLE')
Example 2: matplotlib subplots title
fig.suptitle('This is a somewhat long figure title', fontsize=16)
import matplotlib.pyplot as plt
plt.title('TITLE')
fig.suptitle('This is a somewhat long figure title', fontsize=16)