Menu

[r8]: / trunk / matplotlib / examples / errorbar_demo.py  Maximize  Restore  History

Download this file

13 lines (9 with data), 229 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from matplotlib.matlab import *
t = arange(0.1, 4, 0.1)
s = exp(-t)
e = 0.1*randn(len(s))
errorbar(t, s, e, fmt='o')
xlabel('Distance (m)')
ylabel('Height (m)')
title('Mean an standard error as a function of distance')
show()