Sometimes I use imshow to view a dataset that has a very high or very low aspect ratio. imshow faithfully displays it in its correct aspect ratio, but it keeps the original image aspect ratio instead of showing data across the full axes if I zoom in with the mouse wheel.
Example code to show the problem I'm trying to address:
Resize the figure window to be roughly square and you'll see the following figure, showing the full image by default.
Now zoom in with your mouse wheel and the "very short but very wide" aspect ratio forces only a tiny slice of the image to show when it would be more helpful to show data across the full axes. The next image shows this. I've added text in paint to show where I want to see data.
Is there a way to change this behavior to always display data across the full area of the figure regardless of the original aspect ratio of that data? Thanks for any help!