imshow(img, cmap=cm.gray) shows a white for 128 value
matplotlib image shows in black and white, but I wanted gray
Pygame and blitting: white on white = gray? imshow() function displays empty gray image. What do I do? OpenCV Shows Gray Window Which cmap (colormap) to use with matplotlib imshow() to diplay the MNIST dataset images as black characters on white background how to use matplotlib's set_cmap()? error after using imshow() in mac figure of imshow() is too small What does cm = plt.cm.RdBu mean? Off by one error in imshow? Why/How to use cmap argument in matplotlib imshow() in isolating color panes? Convert a gray scal imageto bilevel python - how to get the data from an plt.imshow()? Set X/Y axis in imshow in Python ValueError: could not broadcast input array from shape (128,128,3) into shape (128,128) Setting points with no data to white with Matplotlib imshow Reaplce img value in html Python Matplotlib : What is the function of cmap in imshow? What names can be used in plt.cm.get_cmap? how to display a image over a map with imshow? How to modify a gray cmap with reserved false color? Difference between cmap and a list of colors Matplotlib imshow() too many objects for cmap maptplotlib imshow() does nothing Plot line after line with imshow Matplotlib cmap not working as expected Remove white border when using subplot and imshow in python (Matplotlib) Error in function imshow Rebin data and update imshow plot imshow resize + count white pixels