I was trying to plot two images side by side without any junk like grid lines and axes. I found that you can turn off ALL grid lines with plt.rcParams['axes.grid'] = False
, but can't figure out if there's a similar option for axes. I know you can use plt.axis('off')
but then you'd have to specify it for each subplot individually.
plt.rcParams['axes.grid'] = False
plt.subplot(1, 2, 1)
plt.imshow(img1)
plt.subplot(1, 2, 2)
plt.imshow(img2)
plt.show()