Skip to content

Commit f694505

Browse files
committed
DOC: better seed & erro for error box demo
1 parent b97c8a3 commit f694505

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/statistics/errorbars_and_boxes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
n = 5
2727

2828
# Dummy data
29-
np.random.seed(0)
29+
np.random.seed(10)
3030
x = np.arange(0, n, 1)
3131
y = np.random.rand(n) * 5.
3232

3333
# Dummy errors (above and below)
34-
xerr = np.random.rand(2, n)
35-
yerr = np.random.rand(2, n)
34+
xerr = np.random.rand(2, n) + 0.1
35+
yerr = np.random.rand(2, n) + 0.2
3636

3737
def make_error_boxes(ax, xdata, ydata, xerror, yerror, facecolor='r',
3838
edgecolor='None', alpha=0.5):

0 commit comments

Comments
 (0)