plt.subplot(5,5,i+1) code example Example: plt.subplot python plt.subplot(nb_rows, nb_cols, position)