8000 Implement connectGaps by mikolalysenko · Pull Request #361 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Implement connectGaps #361

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 8 commits into from
Apr 1, 2016
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
implement connectGaps for line plots
  • Loading branch information
mikolalysenko committed Mar 26, 2016
commit a4c4e0dfa2191861647ad762b494e894db5cc450
1 change: 1 addition & 0 deletions devtools/test_dashboard/test_gl3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ plots['nan-holes'] = require('@mocks/gl3d_nan-holes.json');
plots['connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
plots['tet'] = require('@mocks/gl3d_tet.json');
plots['surface_intensity'] = require('@mocks/gl3d_surface_intensity.json');
plots['connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this line should be:

plots['scatter3d-connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');

so that the corresponding image baseline is displayed properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops! that screwed up when I rebased


plotButtons(plots, figDir);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/image/mocks/gl3d_scatter3d-connectgaps.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"connectgaps": false
}],
"layout": {
"title": "connect gaps test",
"title": "connect gaps test"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check that gaps in x and y also work as expected using:

{
  "data": [{
    "type": "scatter3d",
    "mode": "lines",
    "x": [0, 0, null, null, 0, 0],
    "y": [0, 1, 2, 3, 4, 5],
    "z": [2, 1, null, null, 0, 3],
    "connectgaps": false,
    "name": "gap in z"
  }, {
    "type": "scatter3d",
    "mode": "lines",
    "x": [1, 1, 1, 1, 1, 1],
    "y": [0, 1, null, null, 4, 5],
    "z": [2, 1, 2, 0, 0, 3],
    "connectgaps": false,
    "name": "gap in y"
  },{
    "type": "scatter3d",
    "mode": "lines",
    "x": [2, 2, null, null, 2, 2],
    "y": [0, 1, 2, 3, 4, 5],
    "z": [2, 1, 2, 0, 0, 3],
    "connectgaps": false,
    "name": "gap in x"
  }],
  "layout": {
    "title": "connect gaps test",
  }
}

}
}
0