Skip to content

Commit 114231e

Browse files
committed
test sizeref with vector sizemode
1 parent de30fb6 commit 114231e

File tree

2 files changed

+67
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)