set title on subplots matplotlib code example
Example 1: matplotlib subplots title
fig.suptitle('This is a somewhat long figure title', fontsize=16)
Example 2: set title matplotlib
import matplotlib.pyplot as plt
fig, axs = plt.subplots(1, 2)
axs[0].set_title('TITLE1')