Basically, if I have an image that I want to display with x- and y-axis labels that are not pixel numbers but are numerical, like distance in mm, what is the easiest way to do it in matplotlib?推荐答案您要 extent kwarg You want the extent kwargax.imshow(data, extent=[0, 1, 0, 1])有关更详细的示例,请参见 Imshow:范围和方面.See Imshow: extent and aspect for a more detailed example. 这篇关于与matplotlib中的matlab的imagesc等效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-22 07:07