Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Branch for 1.31.2 #2111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Oct 23, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix double-merge portion of contour algo - and move the test to an im…
…age, since it passed before and after this change
  • Loading branch information
alexcjohnson authored and etpinard committed Oct 23, 2017
commit 96d0c0eb66f436ef33464b262a8e2a9c3f68c0ad
7 changes: 2 additions & 5 deletions 7 src/traces/contour/find_all_paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,8 @@ function makePath(pi, loc, edgeflag, xtol, ytol) {
pi.paths.push(pts.concat(edgepathj));
}
else {
if(j > i) {
j--;
}
pi.edgepaths[j] =
pi.edgepaths[j].concat(pts, edgepathj);
if(j > i) j--;
pi.edgepaths[j] = edgepathj.concat(pts, edgepathi);
}
break;
}
Expand Down
Binary file added BIN +96.2 KB test/image/baselines/contour_doublemerge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions 60 test/image/mocks/contour_doublemerge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"data": [{
"z": [
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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]],
"type": "contour",
"contours": {
"start": 2.2,
"end": 2.4,
"size": 0.02
}
}],
"layout": {"width": 400, "height": 600}
}
77 changes: 0 additions & 77 deletions 77 test/jasmine/tests/contour_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,83 +345,6 @@ describe('contour calc', function() {
});
});

describe('contour edge cases', function() {
var gd;

beforeEach(function() {
gd = createGraphDiv();
});
afterEach(destroyGraphDiv);

it('handles all sorts of merged edge paths', function() {
var z = [
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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],
[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]
];

var data = [{
z: z,
type: 'contour',
showscale: true,
contours: {
start: 2.2,
end: 2.4,
size: 0.02
}
}];
Plotly.newPlot(gd, data);

expect(document.querySelectorAll('.contour .openline').length).toBe(22);
expect(document.querySelectorAll('.contour .closedline').length).toBe(122);
});
});

describe('contour edits', function() {
var gd;

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.