8000 Implement scatter `cliponaxis: false` by etpinard · Pull Request #1824 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Implement scatter cliponaxis: false #1824

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

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
add cliponaxis false mock
  • Loading branch information
etpinard committed Jun 27, 2017
commit 810a2d49f91cdbb4e5d6a4e44366384a3c71ad70
Binary file added test/image/baselines/cliponaxis_false.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions test/image/mocks/cliponaxis_false.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"data": [
{
"mode": "markers+text",
"x": [1, 1, 2, 3, 3, 2],
"y": [2, 1, 1, 1, 2, 2],
"marker": {
"size": [50, 20, 40, 25, 15, 40]
},
"text": "not<br>clipped",
"textposition": ["left", "left", "bottom", "right", "right", "top"],
"error_y": {
"array": [0.1, 0.2, 0.3, 0.1, 0.3, 0.2],
"arrayminus": [0.1, 0.2, 0.1, 0.1, 0.1, 0.2]
},
"error_x": {
"array": [0.1, 0.2, 0.3, 0.1, 0.1, 0.2],
"arrayminus": [0.1, 0.2, 0.1, 0.1, 0.1, 0.2]
},
"cliponaxis": false
}
],
"layout": {
"xaxis": {
"range": [1, 3],
"showline": true,
"linewidth": 2,
"mirror": "all"
},
"yaxis": {
"range": [1, 2],
"showline": true,
"linewidth": 2,
"mirror": "all"
},
"dragmode": "pan",
"hovermode": "closest"
}
}
0