Skip to content

Commit 77ab003

Browse files
committed
add image tests for sqrt errorbars
1 parent 0a8d444 commit 77ab003

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed
21 KB
Loading
26.8 KB
Loading

test/image/mocks/error_bar_sqrt.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
1,
6+
2,
7+
3,
8+
4
9+
],
10+
"y": [
11+
2,
12+
1,
13+
3,
14+
4
15+
],
16+
"error_y": {
17+
"type": "sqrt"
18+
},
19+
"type": "scatter"
20+
}
21+
]
22+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter3d",
5+
"x": [
6+
1,
7+
2,
8+
3
9+
],
10+
"y": [
11+
1,
12+
2,
13+
3
14+
],
15+
"z": [
16+
16,
17+
4,
18+
16
19+
],
20+
"error_z": {
21+
"array": [
22+
2,
23+
4,
24+
2
25+
],
26+
"value": 2,
27+
"width": 10
28+
},
29+
"error_x": {
30+
"type": "sqrt",
31+
"width": 5
32+
},
33+
"uid": "10ccaa"
34+
}
35+
],
36+
"layout": {
37+
"title": "sqrt errorbars",
38+
"scene": {
39+
"camera": {
40+
"eye": {
41+
"x": 1.5,
42+
"y": -1.5,
43+
"z": 1
44+
}
45+
},
46+
"aspectratio": {
47+
"x": 2,
48+
"y": 2,
49+
"z": 1
50+
}
51+
},
52+
"height": 450,
53+
"width": 1000,
54+
"autosize": true
55+
}
56+
}

0 commit comments

Comments
 (0)