What function is used to create a scatter plot in Matplotlib?
Correct answer
A. plt.scatter()
15 views
A. plt.scatter()
15 views
plt.scatter() creates a scatter plot of individual points and lets the size and colour of each point vary with the data.
plt.plot() draws lines by default, plt.bar() draws bars and plt.hist() draws a histogram.
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.