I have a 28x28 numpy ndarray that I want to print out as an image. Since it is a grayscale picture, it only has one color value per pixel. These values are scaled from -0.5 to 0.5. I use plt.imshow(array). When I do that, the image gets printed out with the jet colormap, instead of grayscale.
If I apply cmap = 'gray' I get my grayscale image, but why is the default imshow() using the jet colormap)?