Answers for "how to plot image in python"

C
1

show image in matplotlib

%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
Posted by: Guest on March-10-2021
0

python plot jpg image

%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
Posted by: Guest on October-24-2020

Code answers related to "how to plot image in python"

Code answers related to "C"

Browse Popular Code Answers by Language