Answers for "load a matplotlib figure"

C
1

load and display figure in python

%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
8

how to import matplotlib in python

from matplotlib import pyplot as plt

import matplotlib.pyplot as plt
Posted by: Guest on March-15-2020

Code answers related to "C"

Browse Popular Code Answers by Language