1. Home
  2. Data Science
  3. Matplotlib
  4. What function is used to create a scatter plot in…

Added 24 Feb 2024

What function is used to create a scatter plot in Matplotlib?

  1. plt.scatter() Correct answer
  2. plt.plot()
  3. plt.bar()
  4. plt.hist()

Correct answer

A. plt.scatter()

15 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Matplotlib MCQs

Practise all Matplotlib MCQs

Similar MCQs