Skip to content

Commit

Permalink
test: add colorbars to colorscale_contraint mock
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Nov 10, 2016
1 parent 860ccee commit 0539e28
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Binary file modified test/image/baselines/colorscale_constraint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions test/image/mocks/colorscale_constraint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"color": [1,2,3,4],
"cmin": 2,
"cmax": 3,
"showscale": true
"colorbar": {
"title": "trace 0",
"len": 0.3,
"y": 0,
"yanchor": "bottom"
}
}
}, {
"x": [1,2,3,4,5],
Expand All @@ -15,7 +20,12 @@
"color": [1,2,3,4],
"cmin": 1,
"cmax": 4,
"showscale": false
"colorbar": {
"title": "trace 1",
"len": 0.3,
"y": 0.3,
"yanchor": "bottom"
}
}
}, {
"x": [1,2,3,4],
Expand All @@ -24,7 +34,12 @@
"marker": {
"color": [0,0,0,0],
"size": 10,
"showscale": false
"colorbar": {
"title": "trace 2",
"len": 0.3,
"y": 0.6,
"yanchor": "bottom"
}
}
}],
"layout": {
Expand Down

0 comments on commit 0539e28

Please sign in to comment.