saving . . . saved Errorbar has been deleted. Errorbar has been hidden .
Errorbar
Title
Question
I'm not able to understand the use of error bar. Can you please elaborate?


Python-3.4.3 Plotting-Data 05-06 min 0-10 sec 23-04-20, 2:34 p.m. sakshithakur18@gmail.com

Answers:

Error Bars

Matplotlib line plots and bar charts can include error bars. Error bars are useful to problem solvers because error bars show the confidence or precision in a set of measurements or calculated values. Bar charts without error bars give the illusion that a measured or calculated value is known to high precision or high confidence.

A Basic errorbar can be created with a single Matplotlib function call:

%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
import numpy as np

x = np.linspace(0, 10, 50)
dy = 0.8
y = np.sin(x) + dy * np.random.randn(50)

plt.errorbar(x, y, yerr=dy, fmt='.k');

23-04-20, 3:10 p.m. iakashchavan


Log-in to answer to this question.