Menu

[r540]: / trunk / htdocs / examples / xyerrorbar.py  Maximize  Restore  History

Download this file

15 lines (12 with data), 306 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from matplotlib.matlab import *
t = arange(0.1, 4, 0.1)
s = exp(-t)
e = 0.1*randn(len(s))
f = 0.1*randn(len(s))
g = 0.1*randn(len(s))
h = 0.1*randn(len(s))
xyerrorbar(t, s, e, f, g, h, fmt='o')
xlabel('Distance (m)')
ylabel('Height (m)')
title('Mean and standard error as a function of distance')
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.