Skip to content

Commit c293cf7

Browse files
committed
fix double-merge portion of contour algo
- and move the test to an image, since it passed before and after this change
1 parent c7312e6 commit c293cf7

File tree

4 files changed

+62
-82
lines changed

4 files changed

+62
-82
lines changed

src/traces/contour/find_all_paths.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,8 @@ function makePath(pi, loc, edgeflag, xtol, ytol) {
212212
pi.paths.push(pts.concat(edgepathj));
213213
}
214214
else {
215-
if(j > i) {
216-
j--;
217-
}
218-
pi.edgepaths[j] =
219-
pi.edgepaths[j].concat(pts, edgepathj);
215+
if(j > i) j--;
216+
pi.edgepaths[j] = edgepathj.concat(pts, edgepathi);
220217
}
221218
break;
222219
}
96.2 KB
Loading
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"data": [{
3+
"z": [
4+
[2.38,2.34,2.36,2.37,2.36,2.37,2.36,2.36,2.34,2.35,2.34,2.36,2.38,2.37,2.35,2.34,2.35,2.36,2.36,2.34,2.33,2.34,2.33,2.37],
5+
[2.38,2.35,2.37,2.38,2.35,2.35,2.36,2.38,2.34,2.35,2.35,2.35,2.38,2.36,2.35,2.35,2.34,2.35,2.35,2.33,2.34,2.34,2.33,2.36],
6+
[2.36,2.33,2.32,2.33,2.34,2.34,2.35,2.31,2.31,2.32,2.30,2.33,2.35,2.33,2.32,2.31,2.35,2.33,2.33,2.31,2.32,2.30,2.31,2.34],
7+
[2.36,2.34,2.32,2.31,2.32,2.34,2.35,2.33,2.31,2.34,2.33,2.33,2.35,2.33,2.32,2.32,2.35,2.33,2.33,2.33,2.33,2.30,2.32,2.34],
8+
[2.35,2.35,2.32,2.31,2.30,2.31,2.32,2.32,2.31,2.31,2.32,2.33,2.32,2.32,2.32,2.29,2.32,2.31,2.31,2.31,2.30,2.31,2.30,2.32],
9+
[2.34,2.33,2.31,2.35,2.31,2.33,2.34,2.34,2.32,2.31,2.32,2.33,2.33,2.32,2.33,2.33,2.33,2.33,2.32,2.32,2.32,2.33,2.33,2.32],
10+
[2.33,2.32,2.32,2.31,2.31,2.32,2.33,2.31,2.32,2.31,2.30,2.31,2.34,2.32,2.32,2.31,2.32,2.32,2.32,2.31,2.31,2.31,2.30,2.34],
11+
[2.34,2.32,2.33,2.33,2.32,2.32,2.32,2.31,2.32,2.30,2.32,2.33,2.33,2.32,2.32,2.32,2.32,2.32,2.33,2.32,2.32,2.31,2.32,2.32],
12+
[2.32,2.32,2.31,2.30,2.31,2.31,2.31,2.29,2.31,2.32,2.30,2.33,2.33,2.29,2.31,2.32,2.31,2.33,2.32,2.31,2.31,2.31,2.30,2.32],
13+
[2.33,2.33,2.32,2.33,2.33,2.33,2.32,2.32,2.32,2.32,2.30,2.32,2.31,2.33,2.32,2.33,2.32,2.33,2.34,2.31,2.32,2.31,2.31,2.32],
14+
[2.33,2.31,2.31,2.30,2.30,2.31,2.32,2.33,2.29,2.29,2.30,2.31,2.32,2.32,2.32,2.31,2.32,2.30,2.32,2.30,2.31,2.29,2.29,2.30],
15+
[2.32,2.31,2.32,2.32,2.31,2.32,2.33,2.33,2.31,2.31,2.32,2.33,2.33,2.32,2.33,2.33,2.30,2.32,2.31,2.30,2.30,2.31,2.31,2.31],
16+
[2.33,2.32,2.32,2.30,2.30,2.30,2.30,2.31,2.30,2.31,2.31,2.30,2.32,2.31,2.29,2.31,2.31,2.31,2.31,2.31,2.31,2.30,2.30,2.32],
17+
[2.33,2.33,2.32,2.32,2.30,2.33,2.31,2.31,2.32,2.32,2.32,2.32,2.34,2.31,2.32,2.32,2.32,2.33,2.32,2.31,2.31,2.31,2.31,2.32],
18+
[2.33,2.33,2.30,2.33,2.31,2.32,2.31,2.31,2.30,2.31,2.30,2.32,2.33,2.32,2.31,2.30,2.31,2.33,2.31,2.32,2.30,2.31,2.31,2.32],
19+
[2.33,2.33,2.31,2.32,2.32,2.33,2.33,2.32,2.32,2.34,2.33,2.33,2.33,2.34,2.32,2.31,2.31,2.32,2.32,2.32,2.30,2.32,2.32,2.32],
20+
[2.32,2.31,2.32,2.33,2.31,2.33,2.32,2.32,2.32,2.31,2.31,2.37,2.32,2.31,2.31,2.30,2.31,2.32,2.31,2.31,2.30,2.31,2.31,2.35],
21+
[2.33,2.32,2.32,2.31,2.34,2.35,2.32,2.33,2.33,2.32,2.33,2.34,2.33,2.33,2.32,2.32,2.33,2.34,2.32,2.32,2.31,2.31,2.32,2.33],
22+
[2.32,2.34,2.30,2.33,2.30,2.32,2.33,2.33,2.32,2.31,2.30,2.31,2.32,2.30,2.31,2.29,2.31,2.31,2.31,2.31,2.30,2.32,2.30,2.31],
23+
[2.32,2.32,2.32,2.32,2.32,2.33,2.34,2.34,2.32,2.32,2.32,2.32,2.34,2.30,2.31,2.34,2.32,2.33,2.32,2.30,2.31,2.34,2.31,2.32],
24+
[2.31,2.30,2.33,2.30,2.29,2.30,2.31,2.32,2.30,2.30,2.32,2.31,2.32,2.32,2.31,2.31,2.30,2.32,2.31,2.31,2.31,2.31,2.30,2.29],
25+
[2.32,2.32,2.31,2.31,2.31,2.34,2.32,2.32,2.33,2.30,2.32,2.33,2.32,2.32,2.31,2.31,2.31,2.32,2.29,2.32,2.31,2.31,2.31,2.32],
26+
[2.32,2.30,2.31,2.31,2.29,2.32,2.32,2.33,2.30,2.31,2.30,2.30,2.31,2.32,2.30,2.30,2.31,2.31,2.32,2.31,2.30,2.31,2.32,2.31],
27+
[2.32,2.31,2.32,2.34,2.32,2.32,2.32,2.32,2.32,2.32,2.32,2.34,2.34,2.32,2.32,2.34,2.31,2.30,2.33,2.31,2.34,2.31,2.33,2.31],
28+
[2.33,2.31,2.29,2.31,2.32,2.30,2.34,2.31,2.31,2.32,2.32,2.31,2.31,2.30,2.31,2.29,2.31,2.31,2.31,2.29,2.31,2.31,2.33,2.30],
29+
[2.33,2.30,2.31,2.31,2.31,2.32,2.35,2.33,2.32,2.31,2.31,2.31,2.32,2.32,2.31,2.32,2.31,2.33,2.31,2.33,2.33,2.33,2.32,2.33],
30+
[2.30,2.30,2.31,2.33,2.30,2.31,2.31,2.31,2.29,2.32,2.29,2.31,2.31,2.31,2.31,2.30,2.29,2.32,2.31,2.31,2.31,2.32,2.32,2.30],
31+
[2.32,2.31,2.31,2.31,2.32,2.33,2.32,2.34,2.30,2.32,2.33,2.31,2.33,2.32,2.31,2.32,2.32,2.32,2.32,2.30,2.32,2.32,2.32,2.32],
32+
[2.34,2.33,2.30,2.30,2.33,2.30,2.31,2.31,2.31,2.30,2.31,2.31,2.35,2.31,2.32,2.32,2.30,2.31,2.32,2.32,2.31,2.31,2.31,2.31],
33+
[2.35,2.32,2.30,2.32,2.31,2.32,2.33,2.34,2.34,2.31,2.33,2.32,2.35,2.36,2.31,2.34,2.33,2.33,2.32,2.33,2.32,2.32,2.33,2.34],
34+
[2.34,2.31,2.30,2.31,2.32,2.34,2.34,2.29,2.29,2.30,2.30,2.32,2.31,2.32,2.32,2.31,2.30,2.31,2.33,2.32,2.33,2.32,2.29,2.32],
35+
[2.33,2.34,2.33,2.33,2.32,2.34,2.34,2.33,2.32,2.33,2.33,2.33,2.33,2.32,2.33,2.33,2.31,2.33,2.33,2.32,2.33,2.34,2.32,2.31],
36+
[2.33,2.32,2.31,2.30,2.32,2.31,2.31,2.32,2.31,2.30,2.29,2.32,2.33,2.31,2.33,2.30,2.30,2.31,2.31,2.31,2.32,2.32,2.34,2.32],
37+
[2.32,2.32,2.31,2.32,2.32,2.32,2.35,2.33,2.33,2.31,2.32,2.34,2.32,2.32,2.36,2.33,2.33,2.33,2.32,2.34,2.36,2.32,2.34,2.32],
38+
[2.32,2.30,2.30,2.32,2.32,2.32,2.31,2.31,2.31,2.29,2.30,2.34,2.32,2.32,2.30,2.31,2.34,2.32,2.32,2.32,2.32,2.30,2.30,2.30],
39+
[2.32,2.30,2.33,2.33,2.34,2.32,2.32,2.31,2.32,2.31,2.33,2.32,2.34,2.33,2.31,2.33,2.33,2.32,2.32,2.31,2.33,2.31,2.31,2.32],
40+
[2.30,2.33,2.30,2.31,2.32,2.30,2.31,2.31,2.31,2.30,2.31,2.33,2.32,2.30,2.30,2.32,2.30,2.31,2.31,2.31,2.30,2.30,2.30,2.31],
41+
[2.34,2.32,2.33,2.34,2.33,2.33,2.33,2.32,2.32,2.32,2.33,2.34,2.32,2.32,2.32,2.31,2.34,2.32,2.31,2.31,2.32,2.31,2.31,2.33],
42+
[2.32,2.32,2.31,2.30,2.31,2.30,2.31,2.30,2.31,2.31,2.30,2.32,2.33,2.31,2.31,2.30,2.31,2.32,2.31,2.31,2.31,2.30,2.31,2.32],
43+
[2.33,2.32,2.33,2.32,2.32,2.33,2.32,2.32,2.33,2.31,2.33,2.32,2.32,2.32,2.33,2.31,2.32,2.34,2.33,2.31,2.33,2.31,2.34,2.34],
44+
[2.34,2.31,2.31,2.32,2.30,2.34,2.32,2.31,2.30,2.30,2.31,2.32,2.33,2.31,2.30,2.32,2.30,2.32,2.32,2.32,2.29,2.32,2.31,2.31],
45+
[2.33,2.33,2.32,2.34,2.34,2.33,2.32,2.31,2.32,2.33,2.33,2.31,2.33,2.32,2.32,2.36,2.31,2.33,2.31,2.32,2.31,2.32,2.33,2.31],
46+
[2.33,2.31,2.30,2.31,2.31,2.31,2.31,2.31,2.31,2.29,2.30,2.31,2.31,2.30,2.29,2.30,2.31,2.31,2.31,2.30,2.31,2.30,2.30,2.33],
47+
[2.32,2.31,2.33,2.29,2.30,2.32,2.31,2.32,2.31,2.30,2.32,2.33,2.32,2.32,2.32,2.33,2.31,2.32,2.32,2.32,2.32,2.32,2.30,2.32],
48+
[2.33,2.32,2.32,2.32,2.30,2.33,2.31,2.32,2.31,2.30,2.31,2.33,2.33,2.32,2.32,2.31,2.31,2.31,2.31,2.31,2.29,2.31,2.31,2.31],
49+
[2.33,2.33,2.33,2.32,2.31,2.33,2.33,2.32,2.34,2.33,2.34,2.34,2.33,2.33,2.31,2.32,2.31,2.33,2.34,2.31,2.32,2.32,2.32,2.33],
50+
[2.35,2.33,2.31,2.32,2.32,2.34,2.35,2.31,2.32,2.30,2.31,2.33,2.33,2.32,2.32,2.32,2.32,2.40,2.33,2.32,2.34,2.31,2.31,2.34],
51+
[2.35,2.33,2.33,2.32,2.33,2.34,2.34,2.32,2.33,2.32,2.33,2.34,2.36,2.33,2.33,2.34,2.34,2.34,2.34,2.34,2.34,2.32,2.34,2.35]],
52+
"type": "contour",
53+
"contours": {
54+
"start": 2.2,
55+
"end": 2.4,
56+
"size": 0.02
57+
}
58+
}],
59+
"layout": {"width": 400, "height": 600}
60+
}

test/jasmine/tests/contour_test.js

-77
Original file line numberDiff line numberDiff line change
@@ -345,83 +345,6 @@ describe('contour calc', function() {
345345
});
346346
});
347347

348-
describe('contour edge cases', function() {
349-
var gd;
350-
351-
beforeEach(function() {
352-
gd = createGraphDiv();
353-
});
354-
afterEach(destroyGraphDiv);
355-
356-
it('handles all sorts of merged edge paths', function() {
357-
var z = [
358-
[2.38, 2.34, 2.36, 2.37, 2.36, 2.37, 2.36, 2.36, 2.34, 2.35, 2.34, 2.36, 2.38, 2.37, 2.35, 2.34, 2.35, 2.36, 2.36, 2.34, 2.33, 2.34, 2.33, 2.37],
359-
[2.38, 2.35, 2.37, 2.38, 2.35, 2.35, 2.36, 2.38, 2.34, 2.35, 2.35, 2.35, 2.38, 2.36, 2.35, 2.35, 2.34, 2.35, 2.35, 2.33, 2.34, 2.34, 2.33, 2.36],
360-
[2.36, 2.33, 2.32, 2.33, 2.34, 2.34, 2.35, 2.31, 2.31, 2.32, 2.30, 2.33, 2.35, 2.33, 2.32, 2.31, 2.35, 2.33, 2.33, 2.31, 2.32, 2.30, 2.31, 2.34],
361-
[2.36, 2.34, 2.32, 2.31, 2.32, 2.34, 2.35, 2.33, 2.31, 2.34, 2.33, 2.33, 2.35, 2.33, 2.32, 2.32, 2.35, 2.33, 2.33, 2.33, 2.33, 2.30, 2.32, 2.34],
362-
[2.35, 2.35, 2.32, 2.31, 2.30, 2.31, 2.32, 2.32, 2.31, 2.31, 2.32, 2.33, 2.32, 2.32, 2.32, 2.29, 2.32, 2.31, 2.31, 2.31, 2.30, 2.31, 2.30, 2.32],
363-
[2.34, 2.33, 2.31, 2.35, 2.31, 2.33, 2.34, 2.34, 2.32, 2.31, 2.32, 2.33, 2.33, 2.32, 2.33, 2.33, 2.33, 2.33, 2.32, 2.32, 2.32, 2.33, 2.33, 2.32],
364-
[2.33, 2.32, 2.32, 2.31, 2.31, 2.32, 2.33, 2.31, 2.32, 2.31, 2.30, 2.31, 2.34, 2.32, 2.32, 2.31, 2.32, 2.32, 2.32, 2.31, 2.31, 2.31, 2.30, 2.34],
365-
[2.34, 2.32, 2.33, 2.33, 2.32, 2.32, 2.32, 2.31, 2.32, 2.30, 2.32, 2.33, 2.33, 2.32, 2.32, 2.32, 2.32, 2.32, 2.33, 2.32, 2.32, 2.31, 2.32, 2.32],
366-
[2.32, 2.32, 2.31, 2.30, 2.31, 2.31, 2.31, 2.29, 2.31, 2.32, 2.30, 2.33, 2.33, 2.29, 2.31, 2.32, 2.31, 2.33, 2.32, 2.31, 2.31, 2.31, 2.30, 2.32],
367-
[2.33, 2.33, 2.32, 2.33, 2.33, 2.33, 2.32, 2.32, 2.32, 2.32, 2.30, 2.32, 2.31, 2.33, 2.32, 2.33, 2.32, 2.33, 2.34, 2.31, 2.32, 2.31, 2.31, 2.32],
368-
[2.33, 2.31, 2.31, 2.30, 2.30, 2.31, 2.32, 2.33, 2.29, 2.29, 2.30, 2.31, 2.32, 2.32, 2.32, 2.31, 2.32, 2.30, 2.32, 2.30, 2.31, 2.29, 2.29, 2.30],
369-
[2.32, 2.31, 2.32, 2.32, 2.31, 2.32, 2.33, 2.33, 2.31, 2.31, 2.32, 2.33, 2.33, 2.32, 2.33, 2.33, 2.30, 2.32, 2.31, 2.30, 2.30, 2.31, 2.31, 2.31],
370-
[2.33, 2.32, 2.32, 2.30, 2.30, 2.30, 2.30, 2.31, 2.30, 2.31, 2.31, 2.30, 2.32, 2.31, 2.29, 2.31, 2.31, 2.31, 2.31, 2.31, 2.31, 2.30, 2.30, 2.32],
371-
[2.33, 2.33, 2.32, 2.32, 2.30, 2.33, 2.31, 2.31, 2.32, 2.32, 2.32, 2.32, 2.34, 2.31, 2.32, 2.32, 2.32, 2.33, 2.32, 2.31, 2.31, 2.31, 2.31, 2.32],
372-
[2.33, 2.33, 2.30, 2.33, 2.31, 2.32, 2.31, 2.31, 2.30, 2.31, 2.30, 2.32, 2.33, 2.32, 2.31, 2.30, 2.31, 2.33, 2.31, 2.32, 2.30, 2.31, 2.31, 2.32],
373-
[2.33, 2.33, 2.31, 2.32, 2.32, 2.33, 2.33, 2.32, 2.32, 2.34, 2.33, 2.33, 2.33, 2.34, 2.32, 2.31, 2.31, 2.32, 2.32, 2.32, 2.30, 2.32, 2.32, 2.32],
374-
[2.32, 2.31, 2.32, 2.33, 2.31, 2.33, 2.32, 2.32, 2.32, 2.31, 2.31, 2.37, 2.32, 2.31, 2.31, 2.30, 2.31, 2.32, 2.31, 2.31, 2.30, 2.31, 2.31, 2.35],
375-
[2.33, 2.32, 2.32, 2.31, 2.34, 2.35, 2.32, 2.33, 2.33, 2.32, 2.33, 2.34, 2.33, 2.33, 2.32, 2.32, 2.33, 2.34, 2.32, 2.32, 2.31, 2.31, 2.32, 2.33],
376-
[2.32, 2.34, 2.30, 2.33, 2.30, 2.32, 2.33, 2.33, 2.32, 2.31, 2.30, 2.31, 2.32, 2.30, 2.31, 2.29, 2.31, 2.31, 2.31, 2.31, 2.30, 2.32, 2.30, 2.31],
377-
[2.32, 2.32, 2.32, 2.32, 2.32, 2.33, 2.34, 2.34, 2.32, 2.32, 2.32, 2.32, 2.34, 2.30, 2.31, 2.34, 2.32, 2.33, 2.32, 2.30, 2.31, 2.34, 2.31, 2.32],
378-
[2.31, 2.30, 2.33, 2.30, 2.29, 2.30, 2.31, 2.32, 2.30, 2.30, 2.32, 2.31, 2.32, 2.32, 2.31, 2.31, 2.30, 2.32, 2.31, 2.31, 2.31, 2.31, 2.30, 2.29],
379-
[2.32, 2.32, 2.31, 2.31, 2.31, 2.34, 2.32, 2.32, 2.33, 2.30, 2.32, 2.33, 2.32, 2.32, 2.31, 2.31, 2.31, 2.32, 2.29, 2.32, 2.31, 2.31, 2.31, 2.32],
380-
[2.32, 2.30, 2.31, 2.31, 2.29, 2.32, 2.32, 2.33, 2.30, 2.31, 2.30, 2.30, 2.31, 2.32, 2.30, 2.30, 2.31, 2.31, 2.32, 2.31, 2.30, 2.31, 2.32, 2.31],
381-
[2.32, 2.31, 2.32, 2.34, 2.32, 2.32, 2.32, 2.32, 2.32, 2.32, 2.32, 2.34, 2.34, 2.32, 2.32, 2.34, 2.31, 2.30, 2.33, 2.31, 2.34, 2.31, 2.33, 2.31],
382-
[2.33, 2.31, 2.29, 2.31, 2.32, 2.30, 2.34, 2.31, 2.31, 2.32, 2.32, 2.31, 2.31, 2.30, 2.31, 2.29, 2.31, 2.31, 2.31, 2.29, 2.31, 2.31, 2.33, 2.30],
383-
[2.33, 2.30, 2.31, 2.31, 2.31, 2.32, 2.35, 2.33, 2.32, 2.31, 2.31, 2.31, 2.32, 2.32, 2.31, 2.32, 2.31, 2.33, 2.31, 2.33, 2.33, 2.33, 2.32, 2.33],
384-
[2.30, 2.30, 2.31, 2.33, 2.30, 2.31, 2.31, 2.31, 2.29, 2.32, 2.29, 2.31, 2.31, 2.31, 2.31, 2.30, 2.29, 2.32, 2.31, 2.31, 2.31, 2.32, 2.32, 2.30],
385-
[2.32, 2.31, 2.31, 2.31, 2.32, 2.33, 2.32, 2.34, 2.30, 2.32, 2.33, 2.31, 2.33, 2.32, 2.31, 2.32, 2.32, 2.32, 2.32, 2.30, 2.32, 2.32, 2.32, 2.32],
386-
[2.34, 2.33, 2.30, 2.30, 2.33, 2.30, 2.31, 2.31, 2.31, 2.30, 2.31, 2.31, 2.35, 2.31, 2.32, 2.32, 2.30, 2.31, 2.32, 2.32, 2.31, 2.31, 2.31, 2.31],
387-
[2.35, 2.32, 2.30, 2.32, 2.31, 2.32, 2.33, 2.34, 2.34, 2.31, 2.33, 2.32, 2.35, 2.36, 2.31, 2.34, 2.33, 2.33, 2.32, 2.33, 2.32, 2.32, 2.33, 2.34],
388-
[2.34, 2.31, 2.30, 2.31, 2.32, 2.34, 2.34, 2.29, 2.29, 2.30, 2.30, 2.32, 2.31, 2.32, 2.32, 2.31, 2.30, 2.31, 2.33, 2.32, 2.33, 2.32, 2.29, 2.32],
389-
[2.33, 2.34, 2.33, 2.33, 2.32, 2.34, 2.34, 2.33, 2.32, 2.33, 2.33, 2.33, 2.33, 2.32, 2.33, 2.33, 2.31, 2.33, 2.33, 2.32, 2.33, 2.34, 2.32, 2.31],
390-
[2.33, 2.32, 2.31, 2.30, 2.32, 2.31, 2.31, 2.32, 2.31, 2.30, 2.29, 2.32, 2.33, 2.31, 2.33, 2.30, 2.30, 2.31, 2.31, 2.31, 2.32, 2.32, 2.34, 2.32],
391-
[2.32, 2.32, 2.31, 2.32, 2.32, 2.32, 2.35, 2.33, 2.33, 2.31, 2.32, 2.34, 2.32, 2.32, 2.36, 2.33, 2.33, 2.33, 2.32, 2.34, 2.36, 2.32, 2.34, 2.32],
392-
[2.32, 2.30, 2.30, 2.32, 2.32, 2.32, 2.31, 2.31, 2.31, 2.29, 2.30, 2.34, 2.32, 2.32, 2.30, 2.31, 2.34, 2.32, 2.32, 2.32, 2.32, 2.30, 2.30, 2.30],
393-
[2.32, 2.30, 2.33, 2.33, 2.34, 2.32, 2.32, 2.31, 2.32, 2.31, 2.33, 2.32, 2.34, 2.33, 2.31, 2.33, 2.33, 2.32, 2.32, 2.31, 2.33, 2.31, 2.31, 2.32],
394-
[2.30, 2.33, 2.30, 2.31, 2.32, 2.30, 2.31, 2.31, 2.31, 2.30, 2.31, 2.33, 2.32, 2.30, 2.30, 2.32, 2.30, 2.31, 2.31, 2.31, 2.30, 2.30, 2.30, 2.31],
395-
[2.34, 2.32, 2.33, 2.34, 2.33, 2.33, 2.33, 2.32, 2.32, 2.32, 2.33, 2.34, 2.32, 2.32, 2.32, 2.31, 2.34, 2.32, 2.31, 2.31, 2.32, 2.31, 2.31, 2.33],
396-
[2.32, 2.32, 2.31, 2.30, 2.31, 2.30, 2.31, 2.30, 2.31, 2.31, 2.30, 2.32, 2.33, 2.31, 2.31, 2.30, 2.31, 2.32, 2.31, 2.31, 2.31, 2.30, 2.31, 2.32],
397-
[2.33, 2.32, 2.33, 2.32, 2.32, 2.33, 2.32, 2.32, 2.33, 2.31, 2.33, 2.32, 2.32, 2.32, 2.33, 2.31, 2.32, 2.34, 2.33, 2.31, 2.33, 2.31, 2.34, 2.34],
398-
[2.34, 2.31, 2.31, 2.32, 2.30, 2.34, 2.32, 2.31, 2.30, 2.30, 2.31, 2.32, 2.33, 2.31, 2.30, 2.32, 2.30, 2.32, 2.32, 2.32, 2.29, 2.32, 2.31, 2.31],
399-
[2.33, 2.33, 2.32, 2.34, 2.34, 2.33, 2.32, 2.31, 2.32, 2.33, 2.33, 2.31, 2.33, 2.32, 2.32, 2.36, 2.31, 2.33, 2.31, 2.32, 2.31, 2.32, 2.33, 2.31],
400-
[2.33, 2.31, 2.30, 2.31, 2.31, 2.31, 2.31, 2.31, 2.31, 2.29, 2.30, 2.31, 2.31, 2.30, 2.29, 2.30, 2.31, 2.31, 2.31, 2.30, 2.31, 2.30, 2.30, 2.33],
401-
[2.32, 2.31, 2.33, 2.29, 2.30, 2.32, 2.31, 2.32, 2.31, 2.30, 2.32, 2.33, 2.32, 2.32, 2.32, 2.33, 2.31, 2.32, 2.32, 2.32, 2.32, 2.32, 2.30, 2.32],
402-
[2.33, 2.32, 2.32, 2.32, 2.30, 2.33, 2.31, 2.32, 2.31, 2.30, 2.31, 2.33, 2.33, 2.32, 2.32, 2.31, 2.31, 2.31, 2.31, 2.31, 2.29, 2.31, 2.31, 2.31],
403-
[2.33, 2.33, 2.33, 2.32, 2.31, 2.33, 2.33, 2.32, 2.34, 2.33, 2.34, 2.34, 2.33, 2.33, 2.31, 2.32, 2.31, 2.33, 2.34, 2.31, 2.32, 2.32, 2.32, 2.33],
404-
[2.35, 2.33, 2.31, 2.32, 2.32, 2.34, 2.35, 2.31, 2.32, 2.30, 2.31, 2.33, 2.33, 2.32, 2.32, 2.32, 2.32, 2.40, 2.33, 2.32, 2.34, 2.31, 2.31, 2.34],
405-
[2.35, 2.33, 2.33, 2.32, 2.33, 2.34, 2.34, 2.32, 2.33, 2.32, 2.33, 2.34, 2.36, 2.33, 2.33, 2.34, 2.34, 2.34, 2.34, 2.34, 2.34, 2.32, 2.34, 2.35]
406-
];
407-
408-
var data = [{
409-
z: z,
410-
type: 'contour',
411-
showscale: true,
412-
contours: {
413-
start: 2.2,
414-
end: 2.4,
415-
size: 0.02
416-
}
417-
}];
418-
Plotly.newPlot(gd, data);
419-
420-
expect(document.querySelectorAll('.contour .openline').length).toBe(22);
421-
expect(document.querySelectorAll('.contour .closedline').length).toBe(122);
422-
});
423-
});
424-
425348
describe('contour edits', function() {
426349
var gd;
427350

0 commit comments

Comments
 (0)