matshow 可以使用 PIL 或其他库将图像显示为 imshow 吗?

Can matshow display an image as imshow with PIL or another library?

我看到这个 post 谈论 matshowPIL (PIL/pillow image output is redder than the desired RGB values) 但通常当我们想要显示图像时我们使用 imshowPIL。我在问是否有办法只用 matshowPIL 来做到这一点。

Matplotlib matshow is a wrapper for imshow,因为它 "sets origin to ‘upper’, ‘interpolation’ to ‘nearest’ and ‘aspect’ to equal."

因此,其中一个可能发生的任何事情,另一个同样可能发生。