I want to get two plots next to each other, but the problem is I am not able to figure out how to use a subplot in my case. The code to plot one image is pasted below.
plt.figure(figsize=(30, 30))
plt.title('Clean Image')
plt.imshow(clean_crop, cmap="gray")
plt.plot(clean_lr, clean_ub, 'gx', markersize=40, markeredgewidth=5)
plt.savefig("aligned_cropped_img/FCN_false_neg/" + "Img # " + str(i) + " G_cord" + str(false_neg[i]) + ".jpeg",
dpi=100,
bbox_inches='tight', pad_inches=0)
plt.clf()
clean_crop
is a numpy 2d array, and clean_ur
and clean_ub
are coordinates that I want to highlight. The second plot also has the same format with coordinates; this whole thing is in a loop.
Thank you.