Skip to content

Commit ecfb79a

Browse files
committed
validate various gl3d mocks
1 parent fea81e4 commit ecfb79a

18 files changed

+29
-75
lines changed

test/image/mocks/gl3d_coloraxes.json

-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
{
124124
"type": "isosurface",
125125
"isomax": 0,
126-
"isomin": null,
127126
"value": [
128127
0, 125, 250, 375, 500, 625, 750, 875, 1000,
129128
-125, 0, 125, 250, 375, 500, 625, 750, 875,

test/image/mocks/gl3d_directions-isosurface1.json

+3-3
Large diffs are not rendered by default.

test/image/mocks/gl3d_directions-isosurface2.json

+4-4
Large diffs are not rendered by default.

test/image/mocks/gl3d_directions-streamtube1.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"y": [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4],
1616
"z": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
1717
},
18-
"scene": "scene1"
18+
"scene": "scene"
1919
},
2020
{
2121
"opacity": 0.3,
@@ -112,7 +112,7 @@
112112
"u": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
113113
"v": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
114114
"w": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],
115-
"scene": "scene1"
115+
"scene": "scene"
116116
},
117117
{
118118
"opacity": 0.3,
@@ -181,7 +181,7 @@
181181
"t": 0,
182182
"b": 0
183183
},
184-
"scene1": {
184+
"scene": {
185185
"camera": {
186186
"projection": {
187187
"type": "orthographic"

test/image/mocks/gl3d_directions-streamtube2.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"y": [0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3, -4, -4, -4, -4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1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4],
115-
"scene": "scene1"
115+
"scene": "scene"
116116
},
117117
{
118118
"opacity": 0.3,
@@ -181,7 +181,7 @@
181181
"t": 0,
182182
"b": 0
183183
},
184-
"scene1": {
184+
"scene": {
185185
"camera": {
186186
"projection": {
187187
"type": "orthographic"

test/image/mocks/gl3d_directions-volume1.json

+8-8
Large diffs are not rendered by default.

test/image/mocks/gl3d_errorbars_sqrt.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
4,
2424
2
2525
],
26-
"value": 2,
2726
"width": 10
2827
},
2928
"error_x": {

test/image/mocks/gl3d_indicator_scatter3d.json

-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"type": "indicator",
99
"mode": "number+delta",
1010
"delta": {"reference": 9},
11-
"ticker": {
12-
"showticker": true,
13-
"showpercentage": true
14-
},
1511
"value": 10
1612
}, {
1713
"type": "scatter3d",
@@ -37,7 +33,6 @@
3733
"family": "Dosis"
3834
},
3935
"paper_bgcolor": "black",
40-
"plot_bgcolor": "black",
4136
"margin": {
4237
"t": 25,
4338
"r": 25,

test/image/mocks/gl3d_mirror-ticks.json

-22
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,6 @@
2121
}
2222
],
2323
"layout": {
24-
"yaxis": {
25-
"type": "linear",
26-
"ticks": "outside",
27-
"ticklen": 10,
28-
"tickwidth": 5.3,
29-
"tickcolor": "rgb(214, 39, 40)",
30-
"showline": true,
31-
"mirror": "ticks",
32-
"linecolor": "rgb(0, 255, 0)",
33-
"linewidth": 4.2
34-
},
35-
"xaxis": {
36-
"type": "linear",
37-
"ticks": "outside",
38-
"ticklen": 10,
39-
"tickwidth": 5.3,
40-
"tickcolor": "rgb(214, 39, 40)",
41-
"showline": true,
42-
"mirror": "ticks",
43-
"linecolor": "rgb(0, 255, 0)",
44-
"linewidth": 4.2
45-
},
4624
"scene": {
4725
"xaxis": {
4826
"type": "linear",

test/image/mocks/gl3d_multi-scene.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"marker": {
88
"color": "blue"
99
},
10-
"scene": "scene1"
10+
"scene": "scene"
1111
},{
1212
"type": "scatter3d",
1313
"x": [2],
@@ -20,7 +20,7 @@
2020
}],
2121
"layout": {
2222
"title": {"text": "scene should be the same as scene1"},
23-
"scene1": {
23+
"scene": {
2424
"domain": {
2525
"x": [0, 0.5],
2626
"y": [0, 0.5]

test/image/mocks/gl3d_opacity-scaling-spikes.json

-3
Original file line numberDiff line numberDiff line change
@@ -2840,9 +2840,6 @@
28402840
"projection": {
28412841
"y": {
28422842
"show": true
2843-
},
2844-
"x": {
2845-
"scale": 7.3
28462843
}
28472844
}
28482845
},

test/image/mocks/gl3d_projection-traces.json

-6
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@
9393
}
9494
],
9595
"layout": {
96-
"yaxis": {
97-
"type": "linear"
98-
},
99-
"xaxis": {
100-
"type": "linear"
101-
},
10296
"height": 758,
10397
"width": 1310,
10498
"autosize": true,

test/image/mocks/gl3d_scatter-color-mono-and-palette.json

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
"width": 8,
2525
"color": "magenta"
2626
},
27-
"marker": {
28-
"size": 10
29-
},
3027
"type":"scatter3d"
3128
},
3229
{

test/image/mocks/gl3d_scatter3d_errorbars_inherit_color.json

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
],
7272
"layout": {
7373
"width": 600,
74-
"heigh": 600,
7574
"title": {
7675
"text": "Scatter3d error bars inherit color from line or marker"
7776
}

test/image/mocks/gl3d_scatter3d_line3d_error3d_enable-alpha-with-rgba-color.json

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"error_z": {
1717
"type": "sqrt",
18-
"line": { "thickness": 10 },
1918
"color": "rgba(255, 127, 0, 0.75)"
2019
},
2120
"error_x": {

test/image/mocks/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
},
1313
"line": {
1414
"width": 50,
15-
"color": ["rgba(0, 255, 0, 0.5)", "rgba(255, 0, 0, 0.0)", "rgba(255, 0, 0, 0.0)", "rgba(255, 0, 0, 0.0)", "rgba(0, 0, 255, 1.0)"],
16-
"opacity": 0.999
15+
"color": ["rgba(0, 255, 0, 0.5)", "rgba(255, 0, 0, 0.0)", "rgba(255, 0, 0, 0.0)", "rgba(255, 0, 0, 0.0)", "rgba(0, 0, 255, 1.0)"]
1716
},
1817
"error_z": {
1918
"type": "sqrt",
20-
"line": { "thickness": 10 },
21-
"color": "rgba(0, 255, 0, 0.0)",
22-
"opacity": 0.999
19+
"color": "rgba(0, 255, 0, 0.0)"
2320
},
2421
"error_x": {
2522
"type": "sqrt"

test/image/mocks/gl3d_traces-with-legend.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
1313
"type": "mesh3d",
1414
"name": "mesh3d",
15-
"scene": "scene1"
15+
"scene": "scene"
1616
}, {
1717
"showlegend": true,
1818
"x":[0, -1, -2, 0],
@@ -171,7 +171,7 @@
171171
}
172172
}
173173
},
174-
"scene1": {
174+
"scene": {
175175
"domain": {
176176
"x": [0, 0.2],
177177
"y": [0, 0.5]

test/image/mocks/gl3d_traces-with-opacity.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"showscale": false,
1414
"type": "surface",
1515
"name": "surface",
16-
"scene": "scene1"
16+
"scene": "scene"
1717
}, {
1818
"x": [0, 1, 0, 1, 0, 1, 0, 1],
1919
"y": [0, 0, 1, 1, 0, 0, 1, 1],
@@ -115,7 +115,7 @@
115115
},
116116
"width": 1000,
117117
"height": 500,
118-
"scene1": {
118+
"scene": {
119119
"domain": {
120120
"x": [0, 0.25],
121121
"y": [0, 0.5]

0 commit comments

Comments
 (0)