Skip to content

Commit 3cc9c37

Browse files
committed
test label alias
1 parent 1304bc9 commit 3cc9c37

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed
4.57 KB
Loading

test/image/mocks/grid_subplot_types.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@
1313
"domain": {"row": 2, "column": 0}
1414
},
1515
{"type": "scattergeo", "lon": [0, -75], "lat": [0, 45], "marker": {"size": [20, 30]}},
16-
{"type": "heatmap", "z": [[1, 2], [4, 1]], "showscale": false, "xaxis": "x3", "yaxis": "y3"}
16+
{"type": "heatmap", "z": [[1, 2], [4, 1]], "showscale": true, "xaxis": "x3", "yaxis": "y3", "colorbar": {
17+
"yanchor": "bottom",
18+
"y": 0,
19+
"len": 0.3,
20+
"labelalias": {"2": "TWO"}
21+
}}
1722
],
1823
"layout": {
19-
"xaxis": {"title": {"text": "x"}},
20-
"xaxis2": {"title": {"text": "x2"}},
21-
"yaxis": {"title": {"text": "y"}},
22-
"yaxis2": {"title": {"text": "y2"}},
23-
"xaxis3": {"title": {"text": "x3"}},
24-
"yaxis3": {"title": {"text": "y3"}},
24+
"xaxis": {"title": {"text": "x"}, "labelalias": {"0": "ZERO"}},
25+
"xaxis2": {"title": {"text": "x2"}, "labelalias": {"0": "ZERO"}},
26+
"yaxis": {"title": {"text": "y"}, "labelalias": {"0": "ZERO"}},
27+
"yaxis2": {"title": {"text": "y2"}, "labelalias": {"0": "ZERO"}},
28+
"xaxis3": {"title": {"text": "x3"}, "labelalias": {"0": "ZERO"}},
29+
"yaxis3": {"title": {"text": "y3"}, "labelalias": {"0": "ZERO"}},
2530
"grid": {"rows": 3, "columns": 3, "xgap": 0.3, "ygap": 0.3},
26-
"scene": {"domain": {"row": 1, "column": 1}},
27-
"ternary": {"domain": {"row": 1, "column": 2}},
31+
"scene": {"domain": {"row": 1, "column": 1}, "zaxis": {"labelalias": {"2": "TWO"}}},
32+
"ternary": {"domain": {"row": 1, "column": 2}, "caxis": {"labelalias": {"1": "ONE"}}},
2833
"geo": {"domain": {"row": 2, "column": 1}},
2934
"width": 700,
3035
"height": 700

0 commit comments

Comments
 (0)