Skip to content

Commit fff2cd0

Browse files
committed
add new mock for various gl3d traces with opacity
- the paper_bgcolor also has alpha - the first scene is rendered weirdly
1 parent 5264308 commit fff2cd0

File tree

2 files changed

+173
-0
lines changed

2 files changed

+173
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
{
2+
"data": [{
3+
"x": [-1, 0, 1],
4+
"y": [-1, 0, 1],
5+
"z": [
6+
[0, 1, 0],
7+
[1, 0, 1],
8+
[0, 1, 0]
9+
],
10+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
11+
"opacity": 1,
12+
"showscale": false,
13+
"type": "surface",
14+
"name": "surface",
15+
"scene": "scene1"
16+
}, {
17+
"x": [0, 1, 0, 1, 0, 1, 0, 1],
18+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
19+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
20+
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
21+
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
22+
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
23+
"flatshading": true,
24+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
25+
"opacity": 1,
26+
"type": "mesh3d",
27+
"name": "mesh3d",
28+
"scene": "scene2"
29+
}, {
30+
"x": [-1, 0, 1],
31+
"y": [-1, 0, 1],
32+
"z": [
33+
[0, 1, 0],
34+
[1, 0, 1],
35+
[0, 1, 0]
36+
],
37+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
38+
"opacity": 0.5,
39+
"showscale": false,
40+
"type": "surface",
41+
"name": "surface",
42+
"scene": "scene3"
43+
}, {
44+
"x": [0, 1, 0, 1, 0, 1, 0, 1],
45+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
46+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
47+
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
48+
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
49+
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
50+
"flatshading": true,
51+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
52+
"opacity": 0.5,
53+
"type": "mesh3d",
54+
"name": "mesh3d",
55+
"scene": "scene4"
56+
}, {
57+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
58+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
59+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
60+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
61+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
62+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
63+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
64+
"opacity": 0.5,
65+
"showscale": false,
66+
"type": "cone",
67+
"name": "cone",
68+
"scene": "scene5"
69+
}, {
70+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
71+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
72+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
73+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
74+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
75+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
76+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
77+
"opacity": 0.5,
78+
"showscale": false,
79+
"type": "streamtube",
80+
"name": "streamtube",
81+
"scene": "scene6"
82+
}, {
83+
"x": [0, 0, 0, 0, 1, 1, 1, 1],
84+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
85+
"z": [0, 1, 0, 1, 0, 1, 0, 1],
86+
"value": [0, 0, 0, 1, 1, 0, 0, 0],
87+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
88+
"opacity": 0.5,
89+
"showscale": false,
90+
"type": "isosurface",
91+
"name": "isosurface",
92+
"scene": "scene7"
93+
}, {
94+
"x": [0, 0, 0, 0, 1, 1, 1, 1],
95+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
96+
"z": [0, 1, 0, 1, 0, 1, 0, 1],
97+
"value": [0, 0, 0, 1, 1, 0, 0, 0],
98+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
99+
"opacityscale": "max",
100+
"opacity": 0.5,
101+
"showscale": false,
102+
"type": "volume",
103+
"name": "volume",
104+
"scene": "scene8"
105+
}],
106+
"layout": {
107+
"paper_bgcolor": "rgba(0,0,255, 0.5)",
108+
"margin": {
109+
"t": 0,
110+
"b": 0,
111+
"l": 0,
112+
"r": 0
113+
},
114+
"width": 1000,
115+
"height": 500,
116+
"scene1": {
117+
"domain": {
118+
"x": [0, 0.25],
119+
"y": [0, 0.25]
120+
},
121+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
122+
},
123+
"scene2": {
124+
"domain": {
125+
"x": [0, 0.25],
126+
"y": [0.5, 1]
127+
},
128+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
129+
},
130+
"scene3": {
131+
"domain": {
132+
"x": [0.25, 0.5],
133+
"y": [0, 0.5]
134+
},
135+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
136+
},
137+
"scene4": {
138+
"domain": {
139+
"x": [0.25, 0.5],
140+
"y": [0.5, 1]
141+
},
142+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
143+
},
144+
"scene5": {
145+
"domain": {
146+
"x": [0.5, 0.75],
147+
"y": [0, 0.5]
148+
},
149+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
150+
},
151+
"scene6": {
152+
"domain": {
153+
"x": [0.5, 0.75],
154+
"y": [0.5, 1]
155+
},
156+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
157+
},
158+
"scene7": {
159+
"domain": {
160+
"x": [0.75, 1],
161+
"y": [0, 0.5]
162+
},
163+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
164+
},
165+
"scene8": {
166+
"domain": {
167+
"x": [0.75, 1],
168+
"y": [0.5, 1]
169+
},
170+
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
171+
}
172+
}
173+
}

0 commit comments

Comments
 (0)