Skip to content

Commit 2301c02

Browse files
committed
improved mocks to include marker dot line and marker plus line scenarios
1 parent 6e47ecf commit 2301c02

File tree

2 files changed

+69
-7
lines changed

2 files changed

+69
-7
lines changed

test/image/mocks/gl2d_scatter_error_bars_inherit_color.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data": [
33
{
44
"x": [0, 1, 2, 3, 4],
5-
"y": [100, 200, 400, 600, 700],
5+
"y": [100, 200, 600, 700, 100],
66
"type": "scatter",
77
"mode": "markers+lines",
88
"error_y": {
@@ -11,7 +11,22 @@
1111
},
1212
{
1313
"x": [0, 1, 2, 3, 4],
14-
"y": [0, 100, 300, 500, 600],
14+
"y": [0, 100, 500, 600, 0],
15+
"type": "scatter",
16+
"mode": "markers+lines",
17+
"marker": {
18+
"line": {
19+
"width": 2,
20+
"color": "gray"
21+
}
22+
},
23+
"error_y": {
24+
"type": "sqrt"
25+
}
26+
},
27+
{
28+
"x": [0, 1, 2, 3, 4],
29+
"y": [200, 300, 700, 800, 200],
1530
"type": "scatter",
1631
"mode": "markers+lines",
1732
"marker": {
@@ -23,12 +38,27 @@
2338
},
2439
{
2540
"x": [0, 1, 2, 3, 4],
26-
"y": [200, 300, 500, 700, 800],
41+
"y": [300, 400, 800, 900, 300],
42+
"type": "scatter",
43+
"mode": "markers+lines",
44+
"line": {
45+
"color": "red"
46+
},
47+
"error_y": {
48+
"type": "sqrt"
49+
}
50+
},
51+
{
52+
"x": [0, 1, 2, 3, 4],
53+
"y": [400, 500, 900, 1000, 400],
2754
"type": "scatter",
2855
"mode": "markers+lines",
2956
"line": {
3057
"color": "red"
3158
},
59+
"marker": {
60+
"color": "green"
61+
},
3262
"error_y": {
3363
"type": "sqrt"
3464
}

test/image/mocks/gl3d_scatter3d_error_bars_inherit_color.json

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data": [
33
{
44
"x": [0, 1, 2, 3, 4],
5-
"y": [-5, -10, -20, -30, -35],
5+
"y": [-5, -10, -30, -35, -5],
66
"z": [0, 0, 0, 0, 0],
77
"type": "scatter3d",
88
"mode": "markers+lines",
@@ -12,26 +12,58 @@
1212
},
1313
{
1414
"x": [0, 1, 2, 3, 4],
15-
"y": [0, -5, -15, -25, -30],
15+
"y": [-5, -10, -30, -35, -5],
1616
"z": [1, 1, 1, 1, 1],
1717
"type": "scatter3d",
1818
"mode": "markers+lines",
1919
"marker": {
20-
"color": "green"
20+
"line": {
21+
"width": 2,
22+
"color": "gray"
23+
}
2124
},
2225
"error_y": {
2326
"type": "sqrt"
2427
}
2528
},
2629
{
2730
"x": [0, 1, 2, 3, 4],
28-
"y": [-10, -15, -25, -35, -40],
31+
"y": [-5, -10, -30, -35, -5],
2932
"z": [2, 2, 2, 2, 2],
3033
"type": "scatter3d",
3134
"mode": "markers+lines",
35+
"marker": {
36+
"color": "green"
37+
},
38+
"error_y": {
39+
"type": "sqrt"
40+
}
41+
},
42+
{
43+
"x": [0, 1, 2, 3, 4],
44+
"y": [-5, -10, -30, -35, -5],
45+
"z": [3, 3, 3, 3, 3],
46+
"type": "scatter3d",
47+
"mode": "markers+lines",
48+
"line": {
49+
"color": "red"
50+
},
51+
"error_y": {
52+
"type": "sqrt"
53+
}
54+
},
55+
{
56+
"x": [0, 1, 2, 3, 4],
57+
"y": [-5, -10, -30, -35, -5],
58+
"z": [4, 4, 4, 4, 4],
59+
"type": "scatter3d",
60+
"mode": "markers+lines",
3261
"line": {
3362
"color": "red"
3463
},
64+
"marker": {
65+
"color": "green"
66+
},
3567
"error_y": {
3668
"type": "sqrt"
3769
}

0 commit comments

Comments
 (0)