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

Skip to content

Commit b26f21c

Browse files
committed
Remove hole attribute
1 parent f6c748c commit b26f21c

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/plots/smith/layout_attributes.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,6 @@ module.exports = {
153153
'with *0* corresponding to rightmost limit of the smith subplot.'
154154
].join(' ')
155155
},
156-
hole: {
157-
valType: 'number',
158-
min: 0,
159-
max: 1,
160-
dflt: 0,
161-
editType: 'plot',
162-
description: [
163-
'Sets the fraction of the radius to cut out of the smith subplot.'
164-
].join(' ')
165-
},
166156

167157
bgcolor: {
168158
valType: 'color',

src/plots/smith/layout_defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function handleDefaults(contIn, contOut, coerce, opts) {
2020
opts.bgColor = Color.combine(bgColor, opts.paper_bgcolor);
2121

2222
coerce('sector');
23-
coerce('hole');
2423

2524
// could optimize, subplotData is not always needed!
2625
var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);

src/plots/smith/smith.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ proto.mockCartesianAxis = function(fullLayout, smithLayout, opts) {
310310
var sectorBBox = _this.sectorBBox;
311311
var ind = bboxIndices[axId];
312312
var rl = _this.radialAxis._rl;
313-
var drl = (rl[1] - rl[0]) / (1 - smithLayout.hole);
313+
var drl = (rl[1] - rl[0]);
314314
ax.range = [sectorBBox[ind[0]] * drl, sectorBBox[ind[1]] * drl];
315315
};
316316

0 commit comments

Comments
 (0)