Scientific observations are rarely exact numbers; they carry measurement uncertainty or statistical confidence bounds. Error bars communicate this range of confidence.
Attaching little T-shaped antennas above and below each data point to show the +/- margin of error.
`capsize=5` adds horizontal perpendicular end-caps to the top and bottom of each error bar.
plt.errorbar(x, y, yerr=errors, capsize=4)Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Plot `x=[1, 2, 3]`, `y=[10, 15, 20]` with error bounds `yerr=[1, 2, 1]` and `capsize=4` using `plt.errorbar()`.
✓ plt.errorbar✓ capsizeTest your understanding to unlock the lesson completion badge