I want to display an image (say 800×800) with Matplotlib.pyplot imshow() function but I want to display it so that one pixel of the image occupies one pixel on the screen (zoom factor = 1, no shrink, no stretch).
I’m a beginner, so do you know how to proceed?
Matplotlib isn’t optimized for this. You’d be a bit better off with simpler options if you just want to display an image at one-pixel-to-one-pixel. (Have a look at Tkinter, for example.)
That having been said:
Or, if you really want to use
imshow, you’ll need to be a bit more verbose. However, this has the advantage of allowing you to zoom in, etc if desired.