We're updating the default styles for Matplotlib 2.0

Learn what to expect in the new updates


Previous topic

statistics example code: bxp_demo.py

Next topic

statistics example code: errorbar_demo_features.py

This Page

statistics example code: errorbar_demo.pyΒΆ

(Source code, png, hires.png, pdf)

Demo of the errorbar function.
import numpy as np
import matplotlib.pyplot as plt

# example data
x = np.arange(0.1, 4, 0.5)
y = np.exp(-x)

plt.errorbar(x, y, xerr=0.2, yerr=0.4)

Keywords: python, matplotlib, pylab, example, codex (see Search examples)