Skip to content

Commit d408d9a

Browse files
committed
add gl3d reversescale mock
1 parent 379ffae commit d408d9a

File tree

2 files changed

+148
-0
lines changed

2 files changed

+148
-0
lines changed
52.3 KB
Loading
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"data": [{
3+
"type": "surface",
4+
"z": [
5+
[8.41, 3, 4],
6+
[1, 2, 3],
7+
[2, 43, 1]
8+
],
9+
"reversescale": true,
10+
"colorbar": {
11+
"title": "surface",
12+
"x": -0.15,
13+
"len": 0.3,
14+
"y": 0.7
15+
}
16+
}, {
17+
"type":"mesh3d",
18+
"name": "colorscale + intensity",
19+
"x":[0, 1, 2, 0],
20+
"y":[0, 0, 1, 2],
21+
"z":[0, 2, 0, 1],
22+
"i":[0, 0, 0, 1],
23+
"j":[1, 2, 3, 2],
24+
"k":[2, 3, 1, 3],
25+
"colorscale": [
26+
[0, "rgb(0, 0, 0)"],
27+
[0.33, "rgb(255, 0, 0)"],
28+
[0.66, "rgb(0, 255, 0)"],
29+
[1, "rgb(0, 0, 255)"]
30+
],
31+
"intensity": [0, 0.33, 0.66, 1],
32+
"reversescale": true,
33+
"colorbar": {
34+
"title": "mesh3d",
35+
"x": -0.15,
36+
"len": 0.3,
37+
"y": 0.4
38+
}
39+
}, {
40+
"type": "streamtube",
41+
"x": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2],
42+
"y": [0, 0, 0, 1, 1, 1, 2, 2, 2, 0, 0, 0, 1, 1, 1, 2, 2, 2, 0, 0, 0, 1, 1, 1, 2, 2, 2],
43+
"z": [0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2],
44+
"u": [
45+
1,
46+
1,
47+
1,
48+
1,
49+
1,
50+
1,
51+
1,
52+
1,
53+
1,
54+
1.8414709848078965,
55+
1.8414709848078965,
56+
1.8414709848078965,
57+
1.8414709848078965,
58+
1.8414709848078965,
59+
1.8414709848078965,
60+
1.8414709848078965,
61+
1.8414709848078965,
62+
1.8414709848078965,
63+
1.9092974268256817,
64+
1.9092974268256817,
65+
1.9092974268256817,
66+
1.9092974268256817,
67+
1.9092974268256817,
68+
1.9092974268256817,
69+
1.9092974268256817,
70+
1.9092974268256817,
71+
1.9092974268256817
72+
],
73+
"v": [
74+
1,
75+
1,
76+
1,
77+
0.5403023058681398,
78+
0.5403023058681398,
79+
0.5403023058681398,
80+
-0.4161468365471424,
81+
-0.4161468365471424,
82+
-0.4161468365471424,
83+
1,
84+
1,
85+
1,
86+
0.5403023058681398,
87+
0.5403023058681398,
88+
0.5403023058681398,
89+
-0.4161468365471424,
90+
-0.4161468365471424,
91+
-0.4161468365471424,
92+
1,
93+
1,
94+
1,
95+
0.5403023058681398,
96+
0.5403023058681398,
97+
0.5403023058681398,
98+
-0.4161468365471424,
99+
-0.4161468365471424,
100+
-0.4161468365471424
101+
],
102+
"w": [
103+
0,
104+
0.08865606199840186,
105+
0.1693927420185106,
106+
0,
107+
0.08865606199840186,
108+
0.1693927420185106,
109+
0,
110+
0.08865606199840186,
111+
0.1693927420185106,
112+
0,
113+
0.08865606199840186,
114+
0.1693927420185106,
115+
0,
116+
0.08865606199840186,
117+
0.1693927420185106,
118+
0,
119+
0.08865606199840186,
120+
0.1693927420185106,
121+
0,
122+
0.08865606199840186,
123+
0.1693927420185106,
124+
0,
125+
0.08865606199840186,
126+
0.1693927420185106,
127+
0,
128+
0.08865606199840186,
129+
0.1693927420185106
130+
],
131+
"reversescale": true,
132+
"colorbar": {
133+
"title": "streamtube",
134+
"x": -0.15,
135+
"len": 0.3,
136+
"y": 0,
137+
"yanchor": "bottom"
138+
}
139+
}],
140+
"layout": {
141+
"title": "gl3d trace with reversescale:true",
142+
"scene": {
143+
"camera": {
144+
"eye": {"x": -2, "y": -0.35, "z": 0.34}
145+
}
146+
}
147+
}
148+
}

0 commit comments

Comments
 (0)