Skip to content

Commit 292d34b

Browse files
committed
reformat json mocks
1 parent 1b1a827 commit 292d34b

File tree

3 files changed

+324
-3
lines changed

3 files changed

+324
-3
lines changed
Lines changed: 147 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,147 @@
1-
{"data":[{"x":[0.2],"y":[0.4],"z":[-0.6],"u":[1],"v":[1],"w":[0],"type":"cone"},{"x":[0.4],"y":[-0.6],"z":[0.2],"u":[1],"v":[0],"w":[1],"type":"cone"},{"x":[-0.6],"y":[0.2],"z":[0.4],"u":[0],"v":[1],"w":[1],"type":"cone"},{"x":[-0.2],"y":[-0.4],"z":[0.6],"u":[-1],"v":[-1],"w":[0],"type":"cone"},{"x":[-0.4],"y":[0.6],"z":[-0.2],"u":[-1],"v":[0],"w":[-1],"type":"cone"},{"x":[0.6],"y":[-0.2],"z":[-0.4],"u":[0],"v":[-1],"w":[-1],"type":"cone"}],"layout":{"height":758,"width":1310,"title":"Cone objects with Y-axis using autorange: 'reversed'","scene":{"yaxis":{"autorange":"reversed"},"camera":{"eye":{"x":1,"y":-1.5,"z":1.25}}}}}
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
0.2
6+
],
7+
"y": [
8+
0.4
9+
],
10+
"z": [
11+
-0.6
12+
],
13+
"u": [
14+
1
15+
],
16+
"v": [
17+
1
18+
],
19+
"w": [
20+
0
21+
],
22+
"type": "cone"
23+
},
24+
{
25+
"x": [
26+
0.4
27+
],
28+
"y": [
29+
-0.6
30+
],
31+
"z": [
32+
0.2
33+
],
34+
"u": [
35+
1
36+
],
37+
"v": [
38+
0
39+
],
40+
"w": [
41+
1
42+
],
43+
"type": "cone"
44+
},
45+
{
46+
"x": [
47+
-0.6
48+
],
49+
"y": [
50+
0.2
51+
],
52+
"z": [
53+
0.4
54+
],
55+
"u": [
56+
0
57+
],
58+
"v": [
59+
1
60+
],
61+
"w": [
62+
1
63+
],
64+
"type": "cone"
65+
},
66+
{
67+
"x": [
68+
-0.2
69+
],
70+
"y": [
71+
-0.4
72+
],
73+
"z": [
74+
0.6
75+
],
76+
"u": [
77+
-1
78+
],
79+
"v": [
80+
-1
81+
],
82+
"w": [
83+
0
84+
],
85+
"type": "cone"
86+
},
87+
{
88+
"x": [
89+
-0.4
90+
],
91+
"y": [
92+
0.6
93+
],
94+
"z": [
95+
-0.2
96+
],
97+
"u": [
98+
-1
99+
],
100+
"v": [
101+
0
102+
],
103+
"w": [
104+
-1
105+
],
106+
"type": "cone"
107+
},
108+
{
109+
"x": [
110+
0.6
111+
],
112+
"y": [
113+
-0.2
114+
],
115+
"z": [
116+
-0.4
117+
],
118+
"u": [
119+
0
120+
],
121+
"v": [
122+
-1
123+
],
124+
"w": [
125+
-1
126+
],
127+
"type": "cone"
128+
}
129+
],
130+
"layout": {
131+
"height": 758,
132+
"width": 1310,
133+
"title": "Cone objects with Y-axis using autorange: 'reversed'",
134+
"scene": {
135+
"yaxis": {
136+
"autorange": "reversed"
137+
},
138+
"camera": {
139+
"eye": {
140+
"x": 1,
141+
"y": -1.5,
142+
"z": 1.25
143+
}
144+
}
145+
}
146+
}
147+
}
Lines changed: 135 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,135 @@
1-
{"data":[{"x":[1,1,3,3,1,1,3,3],"y":[21,23,23,21,21,23,23,21],"z":[1e-2,1e-2,1e-2,1e-2,1e+2,1e+2,1e+2,1e+2],"i":[7,0,0,0,4,4,2,6,4,0,3,7],"j":[3,4,1,2,5,6,5,5,0,1,2,2],"k":[0,7,2,3,6,7,1,2,5,5,7,6],"type":"mesh3d"},{"x":[5,-5],"y":[10,15],"z":[[1e-2,1e+2],[1e+3,1e-1],[1e+2,1e-2],[1e-3,1e+1]],"type":"surface","colorscale":[[0.0,"rgb(127,127,255)"],[0.1,"rgb(63,63,255)"],[0.2,"rgb(0,0,255)"],[0.3,"rgb(0,63,191)"],[0.4,"rgb(0,127,127)"],[0.5,"rgb(0,191,63)"],[0.6,"rgb(0,255,0)"],[0.7,"rgb(63,191,0)"],[0.8,"rgb(127,127,0)"],[0.9,"rgb(191,63,0)"],[1.0,"rgb(255,0,0)"]],"cmin":0,"cmax":2},{"x":[-5,-4,-3,-2,-1,0,1,2,3,4,5],"y":[25,16,9,4,1,0,1,4,9,16,25],"z":[1e-5,1e-4,1e-3,1e-2,1e-1,1e0,1e+1,1e+2,1e+3,1e+4,1e+5],"line":{"color":"black","width":5},"text":["A","B","C","D","E","F","G","H","I","J","K"],"type":"scatter3d","mode":"markers+lines+text","error_x":{"type":"sqrt","color":"red"},"error_y":{"type":"sqrt","color":"green"},"error_z":{"type":"sqrt","color":"blue"}}],"layout":{"height":758,"width":1310,"title":"X-axis using autorange:'reversed',Y-axis using range:[30,-5] & Z-axis using range:'reversed' & type:log","scene":{"xaxis":{"autorange":"reversed","showbackground":true,"backgroundcolor":"rgb(127,191,191)","gridcolor":"rgb(255,255,255)","zerolinecolor":"rgb(63,0,0)","zerolinewidth":5},"yaxis":{"range":[30,-5],"showbackground":true,"backgroundcolor":"rgb(191,127,191)","gridcolor":"rgb(255,255,255)","zerolinecolor":"rgb(0,63,0)","zerolinewidth":5},"zaxis":{"autorange":"reversed","type":"log","showbackground":true,"backgroundcolor":"rgb(191,191,127)","gridcolor":"rgb(255,255,255)","zerolinecolor":"rgb(0,0,63)","zerolinewidth":5},"camera":{"eye":{"x":-1.75,"y":-0.75,"z":0.75}}}}}
1+
{
2+
"data": [
3+
{
4+
"x": [1,1,3,3,1,1,3,3],
5+
"y": [21,23,23,21,21,23,23,21],
6+
"z": [0.01,0.01,0.01,0.01,100,100,100,100],
7+
"i": [7,0,0,0,4,4,2,6,4,0,3,7],
8+
"j": [3,4,1,2,5,6,5,5,0,1,2,2],
9+
"k": [0,7,2,3,6,7,1,2,5,5,7,6],
10+
"type": "mesh3d"
11+
},
12+
{
13+
"x": [5,-5],
14+
"y": [10,15],
15+
"z": [
16+
[0.01,100],
17+
[1000,0.1],
18+
[100,0.01],
19+
[0.001,10]
20+
],
21+
"type": "surface",
22+
"colorscale": [
23+
[
24+
0,
25+
"rgb(127,127,255)"
26+
],
27+
[
28+
0.1,
29+
"rgb(63,63,255)"
30+
],
31+
[
32+
0.2,
33+
"rgb(0,0,255)"
34+
],
35+
[
36+
0.3,
37+
"rgb(0,63,191)"
38+
],
39+
[
40+
0.4,
41+
"rgb(0,127,127)"
42+
],
43+
[
44+
0.5,
45+
"rgb(0,191,63)"
46+
],
47+
[
48+
0.6,
49+
"rgb(0,255,0)"
50+
],
51+
[
52+
0.7,
53+
"rgb(63,191,0)"
54+
],
55+
[
56+
0.8,
57+
"rgb(127,127,0)"
58+
],
59+
[
60+
0.9,
61+
"rgb(191,63,0)"
62+
],
63+
[
64+
1,
65+
"rgb(255,0,0)"
66+
]
67+
],
68+
"cmin": 0,
69+
"cmax": 2
70+
},
71+
{
72+
"x": [-5,-4,-3,-2,-1,0,1,2,3,4,5],
73+
"y": [25,16,9,4,1,0,1,4,9,16,25],
74+
"z": [0.00001,0.0001,0.001,0.01,0.1,1,10,100,1000,10000,100000],
75+
"line": {
76+
"color": "black",
77+
"width": 5
78+
},
79+
"text": ["A","B","C","D","E","F","G","H","I","J","K"],
80+
"type": "scatter3d",
81+
"mode": "markers+lines+text",
82+
"error_x": {
83+
"type": "sqrt",
84+
"color": "red"
85+
},
86+
"error_y": {
87+
"type": "sqrt",
88+
"color": "green"
89+
},
90+
"error_z": {
91+
"type": "sqrt",
92+
"color": "blue"
93+
}
94+
}
95+
],
96+
"layout": {
97+
"height": 758,
98+
"width": 1310,
99+
"title": "X-axis using autorange:'reversed',Y-axis using range:[30,-5] & Z-axis using range:'reversed' & type:log",
100+
"scene": {
101+
"xaxis": {
102+
"autorange": "reversed",
103+
"showbackground": true,
104+
"backgroundcolor": "rgb(127,191,191)",
105+
"gridcolor": "rgb(255,255,255)",
106+
"zerolinecolor": "rgb(63,0,0)",
107+
"zerolinewidth": 5
108+
},
109+
"yaxis": {
110+
"range": [30,-5],
111+
"showbackground": true,
112+
"backgroundcolor": "rgb(191,127,191)",
113+
"gridcolor": "rgb(255,255,255)",
114+
"zerolinecolor": "rgb(0,63,0)",
115+
"zerolinewidth": 5
116+
},
117+
"zaxis": {
118+
"autorange": "reversed",
119+
"type": "log",
120+
"showbackground": true,
121+
"backgroundcolor": "rgb(191,191,127)",
122+
"gridcolor": "rgb(255,255,255)",
123+
"zerolinecolor": "rgb(0,0,63)",
124+
"zerolinewidth": 5
125+
},
126+
"camera": {
127+
"eye": {
128+
"x": -1.75,
129+
"y": -0.75,
130+
"z": 0.75
131+
}
132+
}
133+
}
134+
}
135+
}
Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
{"data":[{"type":"streamtube","x":[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],"y":[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],"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],"u":[1,1,1,0.5,0.5,0.5,0.25,0.25,0.25,1,1,1,0.5,0.5,0.5,0.25,0.25,0.25,1,1,1,0.5,0.5,0.5,0.25,0.25,0.25],"v":[1,1,1,1,1,1,1,1,1,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,2,2,2,2,2,2,2,2,2],"w":[0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4],"sizeref":0.5, "cmin":0,"cmax":3}],"layout":{"height":758,"width":1310,"title":"Streamtube, X and Y axes reversed using autorange: reversed, Z-axis reversed using range: [2, -2]","scene":{"camera":{"eye":{"x":0.5,"y":-2.0,"z":1.0}},"xaxis":{"autorange":"reversed"},"yaxis":{"autorange":"reversed"},"zaxis":{"range":[2,-2]}}}}
1+
{
2+
"data": [
3+
{
4+
"type": "streamtube",
5+
"x": [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],
6+
"y": [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],
7+
"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],
8+
"u": [1,1,1,0.5,0.5,0.5,0.25,0.25,0.25,1,1,1,0.5,0.5,0.5,0.25,0.25,0.25,1,1,1,0.5,0.5,0.5,0.25,0.25,0.25],
9+
"v": [1,1,1,1,1,1,1,1,1,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,2,2,2,2,2,2,2,2,2],
10+
"w": [0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4,0,0.2,0.4],
11+
"sizeref": 0.5,
12+
"cmin": 0,
13+
"cmax": 3
14+
}
15+
],
16+
"layout": {
17+
"height": 758,
18+
"width": 1310,
19+
"title": "Streamtube, X and Y axes reversed using autorange: reversed, Z-axis reversed using range: [2, -2]",
20+
"scene": {
21+
"camera": {
22+
"eye": {
23+
"x": 0.5,
24+
"y": -2,
25+
"z": 1
26+
}
27+
},
28+
"xaxis": {
29+
"autorange": "reversed"
30+
},
31+
"yaxis": {
32+
"autorange": "reversed"
33+
},
34+
"zaxis": {
35+
"range": [
36+
2,
37+
-2
38+
]
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)