Skip to content

Commit 8ec732f

Browse files
committed
clear ax._m and copied comments from polar
1 parent f2390d3 commit 8ec732f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/plots/smith/layout_defaults.js

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

23-
// could optimize, subplotData is not always needed!
2423
var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);
2524
var layoutOut = opts.layoutOut;
2625
var axName;
@@ -47,18 +46,6 @@ function handleDefaults(contIn, contOut, coerce, opts) {
4746
axOut.type = 'linear';
4847
setConvert(axOut, contOut, layoutOut);
4948

50-
// We don't want to make downstream code call ax.setScale,
51-
// as both real and imaginary axes don't have a set domain.
52-
// Furthermore, imaginary axes don't have a set range.
53-
//
54-
// Mocked domains and ranges are set by the smith subplot instances,
55-
// but Axes.findExtremes uses the sign of _m to determine which padding value
56-
// to use.
57-
//
58-
// By setting, _m to 1 here, we make Axes.findExtremes think that
59-
// range[1] > range[0], and vice-versa for `autorange: 'reversed'` below.
60-
axOut._m = 1;
61-
6249
handlePrefixSuffixDefaults(axIn, axOut, coerceAxis, axOut.type);
6350

6451
if(visible) {

0 commit comments

Comments
 (0)