Skip to content

Commit

Permalink
add cmid/zmid mock
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 19, 2019
1 parent 23c1cf0 commit 40a7510
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Binary file added test/image/baselines/cmid-zmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions test/image/mocks/cmid-zmid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"data": [{
"y": [1, 2, 1],
"mode": "markers",
"marker": {
"size": 20,
"color": [-1, 1, 10],
"cmid": "0",
"colorbar": {
"len": 0.3,
"y": "1",
"yanchor": "top",
"title": {"text": "marker.cmid=0", "side": "right"}
}
}
}, {
"type": "heatmap",
"z": [[1,2], [2, 3]],
"zmid": -1,
"colorbar": {
"len": 0.3,
"y": "0.5",
"yanchor": "middle",
"title": {"text": "zmid=-1", "side": "right"}
}
}, {
"type": "bar",
"y": [0.5, 1, 0.5],
"name": "marker.line.cmid=2",
"hoverlabel": {"namelength": -1},
"marker": {
"line": {
"width": 2,
"color": [-1, -1, -10],
"cmid": 2
}
}
}],
"layout": {
"title": {"text": "Traces with set <b>cmid</b> / <b>zmid</b>"},
"showlegend": false
}
}

0 comments on commit 40a7510

Please sign in to comment.