8000 fixed errobar cap sizes · matplotlib/matplotlib@2fd8296 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fd8296

Browse files
committed
fixed errobar cap sizes
svn path=/trunk/matplotlib/; revision=76
1 parent 072c64c commit 2fd8296

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
-- DONE 2003-11-18 ticks don't reach edge of axes in gtk mode --
149149
rounding error?
150150

151-
-- port Gary's errorbar code to new API before 0.40
151+
-- DONE 2003-11-20 - port Gary's errorbar code to new API before 0.40
152152

153153
-- legend axes box doesn't resize on save in GTK backend -- see htdocs
154154
legend_demo.py

examples/errorbar_demo.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@
22

33
t = arange(0.1, 4, 0.1)
44
s = exp(-t)
5-
e = 0.1*randn(len(s))
5+
e = 0.1*abs(randn(len(s)))
6+
f = 0.1*abs(randn(len(s)))
7+
g = 2*e
8+
h = 2*f
9+
10+
#errorbar(t, s, e, fmt='o') # vertical symmetric
11+
#errorbar(t, s, None, f, fmt='o') # horizontal symmetric
12+
errorbar(t, s, e, f, fmt='o') # both symmetric
13+
#errorbar(t, s, [e,g], [f,h], fmt='o') # both asymmetric
14+
#errorbar(t, s, [e,g], f, fmt='o') # both mixed
15+
#errorbar(t, s, e, [f,h], fmt='o') # both mixed
16+
#errorbar(t, s, [e,g], fmt='o') # vertical asymmetric
17+
#errorbar(t, s, yerr=e, fmt='o') # named
18+
#errorbar(t, s, xerr=f, fmt='o') # named
619

7-
errorbar(t, s, e, fmt='o')
820
xlabel('Distance (m)')
921
ylabel('Height (m)')
10-
title('Mean an standard error as a function of distance')
22+
title('Mean and standard error as a function of distance')
23+
#savefig('errorbar_demo')
1124
show()
12-

examples/histogram_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
xlabel('Smarts')
1515
ylabel('Probability')
1616
title('Histogram of IQ: mu=100, sigma=15')
17-
savefig('histogram_demo',dpi=72)
17+
#savefig('histogram_demo',dpi=72)
1818
show()

0 commit comments

Comments
 (0)
0