1. Home
  2. Data Science
  3. Matplotlib
  4. Which Matplotlib function plots data points with error bars?

Added 2 Nov 2026

Which Matplotlib function plots data points with error bars?

  1. plt.errorbar() Correct answer
  2. plt.stem()
  3. plt.boxplot()
  4. plt.step()

Correct answer

A. plt.errorbar()

18 views

MCQSEXAM

Explanation

plt.errorbar(x, y, yerr=sd) shows uncertainty, such as standard deviation or confidence intervals, which is common in scientific charts.

Reference

Asked in: Data Science Interviews

Preparing for an exam?

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