My subplot results
My code
fig,ax = plt.subplots(rows,cols, figsize = [24,24])
plt.subplots_adjust(hspace=0, wspace=0)
for i in range(cols):
step = 6
ind = i*step
ax[0,i].imshow(a[ind,:,:],cmap='gray')
ax[0,i].axis('off')
ax[1,i].imshow(b[ind,:,:],cmap='gray')
ax[1,i].axis('off')
ax[2,i].imshow(c[ind,:,:],cmap='gray')
ax[2,i].axis('off')
However, it seems like plt.subplots_adjust(hspace=0, wspace=0) not working at all. I notice that it forces the figure to have equal x and y size, could you help me correct this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…