Change resolution of imshow in ipython
问题 I am using ipython, with a code that looks like this: image = zeros(MAX_X, MAX_Y) # do something complicated to get the pixel values... # pixel values are now in [0, 1]. imshow(image) However, the resulting image always has the same resolution, around (250x250). I thought that the image's dimensions would be (MAX_X x MAX_Y), but that is seemingly not the case. How can I make ipython give me an image with a greater resolution? 回答1: The height and width of the displayed image on the screen is