Skip to content

Commit 54d8240

Browse files
committed
improve gl2d_scatter_fill_self_next_vs_nogl mock
1 parent 6ae6283 commit 54d8240

File tree

2 files changed

+64
-4
lines changed

2 files changed

+64
-4
lines changed
Loading

test/image/mocks/gl2d_scatter_fill_self_next_vs_nogl.json

+64-4
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,76 @@
3535
"y": [2, 4, 2],
3636
"fill": "toself","fillcolor":"#228", "line": { "color": "#88c" },
3737
"type": "scatter","showlegend": true, "xaxis": "x2", "yaxis": "y2"
38+
},
39+
{
40+
"x": [1, 2, 3, 1, null, 4, 5, 6],
41+
"y": [2, 3, 2, 2, null, 3, 4, 3],
42+
"error_x": {"value": 0.6, "type": "constant","color":"#cf0"},
43+
"error_y": {"value": 0.4, "type": "constant","color":"#fc0"},
44+
"fill": "tonext","fillcolor":"#282", "line": { "color": "#8c8" },
45+
"type": "scattergl", "showlegend": true, "xaxis": "x3", "yaxis": "y3"
46+
},
47+
{
48+
"x": [-1, 4, 9, null, 0, 1, 2],
49+
"y": [1, 6, 1, null, 5, 6, 5],
50+
"error_x": {"value": 0.6, "type": "constant","color":"#cf0"},
51+
"error_y": {"value": 0.4, "type": "constant","color":"#fc0"},
52+
"fill": "tonext","fillcolor":"#822", "line": { "color": "#c88" },
53+
"type": "scattergl", "showlegend": true, "xaxis": "x3", "yaxis": "y3"
54+
},
55+
{
56+
"x": [-2,-2, 0, 8,10 ,10],
57+
"y": [ 0, 1, 7, 7, 1 , 0],
58+
"fill": "tonext","fillcolor":"#828", "line": { "color": "#c8c" },
59+
"type": "scattergl", "showlegend": true, "xaxis": "x3", "yaxis": "y3"
60+
},
61+
{
62+
"x": [9,10,11],
63+
"y": [7, 8, 7],
64+
"fill": "toself","fillcolor":"#228", "line": { "color": "#88c" },
65+
"type": "scattergl", "showlegend": true, "xaxis": "x3", "yaxis": "y3"
66+
},
67+
{
68+
"x": [1, 2, 3, 1, null, 4, 5, 6],
69+
"y": [2, 3, 2, 2, null, 3, 4, 3],
70+
"error_x": {"value": 0.6, "type": "constant","color":"#cf0"},
71+
"error_y": {"value": 0.4, "type": "constant","color":"#fc0"},
72+
"fill": "tonext","fillcolor":"#282", "line": { "color": "#8c8" },
73+
"type": "scatter", "showlegend": true, "xaxis": "x4", "yaxis": "y4"
74+
},
75+
{
76+
"x": [-1, 4, 9, null, 0, 1, 2],
77+
"y": [1, 6, 1, null, 5, 6, 5],
78+
"error_x": {"value": 0.6, "type": "constant","color":"#cf0"},
79+
"error_y": {"value": 0.4, "type": "constant","color":"#fc0"},
80+
"fill": "tonext","fillcolor":"#822", "line": { "color": "#c88" },
81+
"type": "scatter", "showlegend": true, "xaxis": "x4", "yaxis": "y4"
82+
},
83+
{
84+
"x": [-2,-2, 0, 8,10 ,10],
85+
"y": [ 0, 1, 7, 7, 1 , 0],
86+
"fill": "tonext","fillcolor":"#828", "line": { "color": "#c8c" },
87+
"type": "scatter", "showlegend": true, "xaxis": "x4", "yaxis": "y4"
88+
},
89+
{
90+
"x": [9,10,11],
91+
"y": [7, 8, 7],
92+
"fill": "toself","fillcolor":"#228", "line": { "color": "#88c" },
93+
"type": "scatter","showlegend": true, "xaxis": "x4", "yaxis": "y4"
3894
}
3995
],
4096
"layout":{
4197
"title": "Fill toself and tonext",
42-
"width": 600,"height": 400,
98+
"width": 600,"height": 600,
4399
"margin": {"l": 20, "r": 40, "t": 40, "b": 40},
44-
"grid": {"columns": 2, "rows": 1, "pattern": "independent", "roworder": "bottom to top"} ,
100+
"grid": {"columns": 2, "rows": 2, "pattern": "independent", "roworder": "bottom to top"} ,
45101
"xaxis" : { "title": "GL" , "type": "linear", "rangemode": "tozero", "nticks": 3 },
46102
"xaxis2": { "title": "" , "type": "linear", "rangemode": "tozero", "nticks": 3 },
47-
"yaxis" : { "title": "" , "type": "linear", "range": [0,8], "nticks": 3 },
48-
"yaxis2": { "title": "" , "type": "linear", "range": [0,8], "nticks": 3 }
103+
"yaxis" : { "title": "" , "type": "linear", "range": [0,9], "nticks": 3 },
104+
"yaxis2": { "title": "" , "type": "linear", "range": [0,9], "nticks": 3 },
105+
"xaxis3": { "title": "GL" , "type": "linear", "rangemode": "tozero", "nticks": 3 },
106+
"xaxis4": { "title": "" , "type": "linear", "rangemode": "tozero", "nticks": 3 },
107+
"yaxis3": { "title": "" , "type": "linear", "range": [0,9], "nticks": 3 },
108+
"yaxis4": { "title": "" , "type": "linear", "range": [0,9], "nticks": 3 }
49109
}
50110
}

0 commit comments

Comments
 (0)