What is the purpose of the plt.imshow() function in Matplotlib?
Correct answer
A. To display an image
16 views
A. To display an image
16 views
plt.imshow() displays an image, or any 2-D array as an image, with values mapped to colours through a colormap.
It is widely used for photographs, heatmaps and confusion matrices.
Practise more Data Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.