0

I am using imshow to plot an image in the background of a subplot. Is it possible to show only part of the image, scale it? It seems extent does not do the job.

fig, axs = plt.subplots(1,1)
im = plt.imread("GUN2.png")     
axs[0,0].imshow(im, extent=[0,10,0, 10])
axs[0,0].plot((z_main,G, 'b.')
axs[0,0].grid()
amirwe
  • 1
  • 1

0 Answers0