plt.subplots add plot code example Example: plt.subplot python plt.subplot(nb_rows, nb_cols, position)