Skip to content

Commit 7fa34f6

Browse files
committed
mocks to generate baseline images with CircleCi
1 parent 60ee80d commit 7fa34f6

6 files changed

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

0 commit comments

Comments
 (0)