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

Skip to content

Commit 8fb9134

Browse files
committed
test: add subplot to layout image mock
1 parent 67f0033 commit 8fb9134

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

test/image/baselines/layout_image.png

-14.5 KB
Loading

test/image/mocks/layout_image.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33
{
44
"x": [1,2,3],
55
"y": [1,2,3]
6+
}, {
7+
"x": [1,2,3],
8+
"y": [1,2,3],
9+
"yaxis": "y2"
610
}
711
],
812
"layout": {
13+
"yaxis": {
14+
"domain": [0, 0.5]
15+
},
16+
"yaxis2": {
17+
"domain": [0.5, 1]
18+
},
919
"images": [
1020
{
1121
"source": "https://images.plot.ly/language-icons/api-home/python-logo.png",
@@ -32,7 +42,7 @@
3242
{
3343
"source": "https://images.plot.ly/language-icons/api-home/r-logo.png",
3444
"xref": "x",
35-
"yref": "y",
45+
"yref": "y2",
3646
"x": 1,
3747
"y": 3,
3848
"sizex": 2,

0 commit comments

Comments
 (0)