Skip to content

Commit 4608966

Browse files
committed
improve mock for prime edge cases
1 parent 4ea04d5 commit 4608966

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed
Loading

test/image/mocks/gl3d_surface_contour_precision.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,25 @@
22
"data": [
33
{
44
"type": "surface",
5-
"contours": {"x": {"show": true}, "y": {"show": true}, "z": {"show": true}},
6-
"x": [0, 0.4321, 1],
7-
"y": [0, 1],
8-
"z": [[54321.9876, 54322.9876, 54321.9876], [54322.9876, 54321.9876, 54322.9876]]
5+
"contours": {"x": {"show": false}, "y": {"show": false}, "z": {"show": true}},
6+
"x": [0, 0.1485, 0.5, 0.9090, 1],
7+
"y": [0, 0.5, 1],
8+
"z": [
9+
[54321.9876, 54322.9876, 54321.9876, 54322.9876, 54321.9876],
10+
[54322.9876, 54321.9876, 54322.9876, 54321.9876, 54322.9876],
11+
[54321.9876, 54322.9876, 54321.9876, 54322.9876, 54321.9876]
12+
]
913
},
1014
{
1115
"type": "surface",
12-
"contours": {"x": {"show": true}, "y": {"show": true}, "z": {"show": true}},
13-
"x": [0, 0.4321, 1],
14-
"y": [0, 1],
15-
"z": [[54323.9876, 54322.9876, 54323.9876], [54322.9876, 54323.9876, 54322.9876]]
16+
"contours": {"x": {"show": false}, "y": {"show": false}, "z": {"show": true}},
17+
"x": [0, 0.1485, 0.5, 0.9090, 1],
18+
"y": [0, 0.5, 1],
19+
"z": [
20+
[54323.9876, 54322.9876, 54323.9876, 54322.9876, 54323.9876],
21+
[54322.9876, 54323.9876, 54322.9876, 54323.9876, 54322.9876],
22+
[54323.9876, 54322.9876, 54323.9876, 54322.9876, 54323.9876]
23+
]
1624
}
1725
],
1826
"layout": {
@@ -24,7 +32,7 @@
2432
"yaxis": {"nticks": 4},
2533
"zaxis": {"nticks": 48},
2634
"camera": {
27-
"eye": {"x": 0, "y": 1.25, "z": 0},
35+
"eye": {"x": 1, "y": 1, "z": 0},
2836
"center": {"x": 0, "y": 0, "z": 0},
2937
"up": {"x": 0, "y": 0, "z": 1}
3038
}

0 commit comments

Comments
 (0)