Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f694505

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎examples/statistics/errorbars_and_boxes.py

Copy file name to clipboardExpand all lines: examples/statistics/errorbars_and_boxes.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.