Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires InEnroll Now
image module in Matplotlib package provides various functions required for loading, rescaling and displaying image.
Loading image data is supported by the Pillow library. Natively, Matplotlib only supports PNG images.
First, we will import pyplot and image from matplotlib. We will also import numpy
import matplotlib.<< your code goes here >> as plt import matplotlib.<< your code goes here >> as mpimg import << your code goes here >> as np
Now we will read the image using the
path = 'https://cloudxlab.s3.amazonaws.com/static/images/aha/matplotlib/introduction_image.png' img = mpimg.<< your code goes here >>(path)
And finally, we will display the image using
imgplot = plt.imshow(img)
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here