Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40a7510

Browse files
committed
add cmid/zmid mock
1 parent 23c1cf0 commit 40a7510

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

test/image/baselines/cmid-zmid.png

26.8 KB
Loading

test/image/mocks/cmid-zmid.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"data": [{
3+
"y": [1, 2, 1],
4+
"mode": "markers",
5+
"marker": {
6+
"size": 20,
7+
"color": [-1, 1, 10],
8+
"cmid": "0",
9+
"colorbar": {
10+
"len": 0.3,
11+
"y": "1",
12+
"yanchor": "top",
13+
"title": {"text": "marker.cmid=0", "side": "right"}
14+
}
15+
}
16+
}, {
17+
"type": "heatmap",
18+
"z": [[1,2], [2, 3]],
19+
"zmid": -1,
20+
"colorbar": {
21+
"len": 0.3,
22+
"y": "0.5",
23+
"yanchor": "middle",
24+
"title": {"text": "zmid=-1", "side": "right"}
25+
}
26+
}, {
27+
"type": "bar",
28+
"y": [0.5, 1, 0.5],
29+
"name": "marker.line.cmid=2",
30+
"hoverlabel": {"namelength": -1},
31+
"marker": {
32+
"line": {
33+
"width": 2,
34+
"color": [-1, -1, -10],
35+
"cmid": 2
36+
}
37+
}
38+
}],
39+
"layout": {
40+
"title": {"text": "Traces with set <b>cmid</b> / <b>zmid</b>"},
41+
"showlegend": false
42+
}
43+
}

0 commit comments

Comments
 (0)