Ive got a lot of images of galaxies through different filters. each line of subplots represents a new object with a unique 'ID'. Im plotting all of these images using the subplot function but am having trouble adding the ID name. Ideally the ID would stretch in front of several subplots but at the moment it is placed behind (see picture). Does anyone know of a way to fix this?
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])
filterset=['ugr','i1','z','Y','J','H','Ks']
test2=np.array([])
for i in range(0,len(ID)):
for j in range(0,len(filterset)):
test2=np.append(test2,'filt_image/'+ID[i]+'/'+filterset[j]+'.png')
ID2=np.repeat(ID,7)
filterset2=filterset*64
array=np.arange(0,140,7)
plt.figure()
for i in range(0,140):
plt.subplot(20,7,i+1)
plots=img.imread(test2[i])
plt.imshow(plots)
plt.axis('off')
plt.text(0,100,filterset2[i],fontsize='10')
for i in array:
plt.subplot(20,7,i+1)
plt.annotate(ID2[i],xy=(0,300),xytext=(0,300),fontsize='10')
plt.show()
Aucun commentaire:
Enregistrer un commentaire