Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib show image black and white

# maping image to gray scale
plt.imshow(image, cmap='gray')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: how to add a key in python dictionary 
Python :: dataframe change column types 
Python :: render() django 
Python :: remove outlier using IQR 
Python :: read bin file python 
Python :: python sort array by key 
Python :: python bytes to hex 
Python :: python check if key exist in dict 
Python :: how to find the indexes of a substring in a string in python 
Python :: find distance between two points in python 
Python :: how to iterate over rows in pandas 
Python :: python while true 
Python :: calculation in python 
Python :: semaphore in python 
Python :: gfg placement 
Python :: pd.explode 
Python :: stingray 
Python :: python selenium print xpath of element 
Python :: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. 
Python :: Fill in the empty function so that it returns the sum of all the divisors of a number, without including it. A divisor is a number that divides into another without a remainder. 
Python :: how to do the sum of list in python 
Python :: how to find a key in a dictionary python 
Python :: convert birth date column to age pandas 
Python :: python else syntax 
Python :: iterating over lines in a file 
Python :: ImportError: cannot import name 
Python :: odd number sum in python 
Python :: python sort list case insensitive 
Python :: install python cap 
Python :: csv to pdf python 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =