I have numpy array with the following properties.
np.shape(I)
(300, 300)
np.min(I)
115
np.max(I)
250
Unfortunately, when I plot it, I get something greenish bluish.
How to get normal grayscale palette?
Try this one:
imgplot = plt.imshow(I, cmap='gray')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With