我有一段代码输入了总共448个缩略图,我需要用64行和7列显示它们。我所拥有的代码就是这样,但图像太小,完全没用。我附上了我目前拥有的图像和代码。有关如何让它们显示大到足以看到的任何建议?
import numpy as np
import pylab as plt
import csv
import os
import matplotlib.image as img
plt.close('all')
ID=np.array([])
cata=csv.reader(open('final_final_list.csv',"rU"))
for x in cata:
ID=np.append(ID,x[0])
plots_acc=np.array([])
for i in range(0,len(ID)):
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'ugr.png') #appending the file location for each of the object filter images
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'i1.png')
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'z.png')
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'Y.png')
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'J.png')
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'H.png')
plots_acc=np.append(plots_acc,'filt_image/'+ID[i]+'/'+'Ks.png')
text=(['ugr','i1','z','Y','J','H','Ks'])
print plots_acc
plt.figure()
for x in range(0,len(plots_acc)): #creating subplot of filter images
plt.subplot(64,7,x)
plots=img.imread(plots_acc[x])
plt.imshow(plots)
plt.axis('off')
#plt.suptitle(ID[i])
plt.subplots_adjust(hspace=0.0, wspace=0.0, bottom=0.63)
#plt.savefig('accepted object images/'+str(ID[i])+'.png')
plt.show()