Skip to content

Commit 3fe6fd2

Browse files
committed
default cliponaxis to false similar to polar - adjust mocks
1 parent bc8863c commit 3fe6fd2

14 files changed

+39
-115
lines changed

src/traces/scattersmith/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
connectgaps: scatterAttrs.connectgaps,
4242

4343
marker: scatterAttrs.marker,
44-
cliponaxis: scatterAttrs.cliponaxis,
44+
cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {dflt: false}),
4545

4646
textposition: scatterAttrs.textposition,
4747
textfont: scatterAttrs.textfont,
515 Bytes
Loading
2 Bytes
Loading
8 Bytes
Loading
-99.2 KB
Loading
-5 Bytes
Loading
-8.56 KB
Loading
350 Bytes
Loading
11.7 KB
Loading

test/image/mocks/zzz_smith_gaps.json

Lines changed: 21 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -2,149 +2,64 @@
22
"data": [
33
{
44
"type": "scattersmith",
5+
"name": "gaps",
56
"real": [
6-
0,
7-
0.1,
8-
0.5,
9-
1,
10-
2,
11-
3,
12-
4,
13-
5,
14-
10,
15-
0.1,
16-
0.5,
17-
10
7+
0, 0.2, 0.4, null, 0.8, 1, null, 2, 3, null, 5
188
],
199
"imag": [
20-
0,
21-
0.1,
22-
0.5,
23-
1,
24-
2,
25-
3,
26-
4,
27-
5,
28-
10,
29-
-0.1,
30-
-0.5,
31-
-10
32-
],
33-
"mode": "markers+lines"
34-
},
35-
{
36-
"type": "scattersmith",
37-
"real": [
38-
0,
39-
0.1,
40-
null,
41-
1,
42-
2,
43-
3,
44-
4,
45-
5,
46-
10,
47-
0.1,
48-
0.5,
49-
10
50-
],
51-
"imag": [
52-
0,
53-
0.1,
54-
0.5,
55-
1,
56-
2,
57-
3,
58-
4,
59-
5,
60-
10,
61-
-0.1,
62-
-0.5,
63-
-10
10+
0, 0.2, 0.4, null, 0.8, 1, null, 2, 3, null, 5
6411
],
6512
"mode": "markers+lines",
66-
"subplot": "smith2"
13+
"line": { "shape": "spline" }
6714
},
6815
{
6916
"type": "scattersmith",
17+
"name": "connectgaps",
18+
"connectgaps": true,
7019
"real": [
71-
0,
72-
0.1,
73-
null,
74-
1,
75-
2,
76-
3,
77-
4,
78-
5,
79-
10,
80-
0.1,
81-
0.5,
82-
10
20+
0, 0.2, 0.4, null, 0.8, 1, null, 2, 3, null, 5
8321
],
8422
"imag": [
85-
0,
86-
0.1,
87-
0.5,
88-
1,
89-
2,
90-
3,
91-
4,
92-
5,
93-
10,
94-
-0.1,
95-
-0.5,
96-
-10
23+
0, 0.2, 0.4, null, 0.8, 1, null, 2, 3, null, 5
9724
],
98-
"connectgaps": true,
9925
"mode": "markers+lines",
100-
"subplot": "smith3"
26+
"line": { "shape": "spline" },
27+
"subplot": "smith2"
10128
}
10229
],
10330
"layout": {
10431
"smith": {
10532
"domain": {
10633
"x": [
10734
0,
108-
0.46
109-
],
110-
"y": [
111-
0.56,
11235
1
113-
]
114-
}
115-
},
116-
"smith2": {
117-
"domain": {
118-
"x": [
119-
0,
120-
0.46
12136
],
12237
"y": [
12338
0,
124-
0.44
39+
0.45
12540
]
12641
}
12742
},
128-
"smith3": {
43+
"smith2": {
12944
"domain": {
13045
"x": [
131-
0.54,
46+
0,
13247
1
13348
],
13449
"y": [
135-
0.56,
50+
0.55,
13651
1
13752
]
13853
}
13954
},
140-
"showlegend": false,
55+
"legend": { "orientation": "h" },
14156
"margin": {
142-
"t": 40,
143-
"b": 40,
144-
"r": 40,
145-
"l": 40
57+
"t": 30,
58+
"b": 30,
59+
"r": 30,
60+
"l": 30
14661
},
147-
"width": 800,
148-
"height": 800
62+
"width": 300,
63+
"height": 600
14964
}
15065
}

0 commit comments

Comments
 (0)