I am trying to use subplot from matplotlib to plot 6 figures with 2 figures per row. The plots are stored as strings in a list. For simplicity, I have a code that would print text instead of the actual plots below.
ab = ['1','2', '3', '4', '5', '6']`
fig,axes = plt.subplots(3, 2, sharex='col', sharey='row)
for i in range (3)
for j in range(2)
axes[i,j].text(0.5,0.5, str(f"{ab[i]}"), fontsize(18), ha='center')
fig
How can I write a for loop to achieve a final figure like this: