Matplotlib - Image Display
Which of the following is the correct way to display a 2D numpy array named
img as an image using matplotlib?img as an image using matplotlib?plt.imshow() is the correct function.plt.plot() is for line plots, plt.hist() for histograms, and plt.show() displays the current figure but does not take data as argument.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions