Open
Description
I am trying to plot an RGB image that strecthes to fill the figure, and I cannot get it to work.
Using a standard 2D array works as expected, and the image is able to dynamically stretch to the figure.
arr = np.random.random((100, 100))
px.imshow(arr, aspect="auto")
But if I instead try to plot an RGB image with the same settings, then the image stays with its original aspect ratio.
img = np.random.random((100, 100, 3))
px.imshow(img, aspect="auto")
In this case, setting the aspect key does nothing and the image keeps a fixed aspect ratio. Explicitly adding with and height also does nothing to change the aspect ratio.
Is this an expected limitation of the aspect setting? If yes, then it should probably be documented.