Skip to content

Commit 73e908e

Browse files
committed
add cone size test
1 parent 08f21f0 commit 73e908e

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

Diff for: test/image/baselines/gl3d_cone-sizemode.png

43.2 KB
Loading

Diff for: test/image/mocks/gl3d_cone-sizemode.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"data": [
3+
{
4+
"type": "cone",
5+
"x": [1, 2, 3],
6+
"y": [1, 2, 3],
7+
"z": [1, 2, 3],
8+
"u": [1, 0, 0],
9+
"v": [0, 3, 0],
10+
"w": [0, 0, 2],
11+
"sizemode": "absolute",
12+
"sizeref": 4.5,
13+
"anchor": "tip",
14+
"colorbar": {
15+
"title": { "text": "absolute<br>sizeref: 4.5" },
16+
"x": 0,
17+
"xanchor": "right"
18+
}
19+
},
20+
{
21+
"colorbar": {
22+
"title": { "text": "scaled<br>sizeref: 0.5" }
23+
},
24+
"anchor": "tip",
25+
"type": "cone",
26+
"x": [1, 2, 3],
27+
"y": [1, 2, 3],
28+
"z": [1, 2, 3],
29+
"u": [1, 0, 0],
30+
"v": [0, 3, 0],
31+
"w": [0, 0, 2],
32+
"scene": "scene2"
33+
}
34+
],
35+
"layout": {
36+
"scene": {
37+
"domain": {"x": [0, 0.5]},
38+
"aspectratio": {
39+
"x": 1.5,
40+
"y": 1.5,
41+
"z": 1.5
42+
},
43+
"camera": {
44+
"projection": {"type": "orthographic"},
45+
"up": {"x": 0, "y": 1, "z": 0},
46+
"eye": {"x": 0, "y": 0, "z": 3}
47+
}
48+
},
49+
"scene2": {
50+
"domain": {"x": [0.5, 1]},
51+
"aspectratio": {
52+
"x": 1.5,
53+
"y": 1.5,
54+
"z": 1.5
55+
},
56+
"camera": {
57+
"projection": {"type": "orthographic"},
58+
"up": {"x": 0, "y": 1, "z": 0},
59+
"eye": {"x": 0, "y": 0, "z": 3}
60+
}
61+
},
62+
"width": 1000,
63+
"height": 500
64+
}
65+
}

0 commit comments

Comments
 (0)