@@ -20,7 +20,6 @@ function handleDefaults(contIn, contOut, coerce, opts) {
20
20
var bgColor = coerce ( 'bgcolor' ) ;
21
21
opts . bgColor = Color . combine ( bgColor , opts . paper_bgcolor ) ;
22
22
23
- // could optimize, subplotData is not always needed!
24
23
var subplotData = getSubplotData ( opts . fullData , constants . name , opts . id ) ;
25
24
var layoutOut = opts . layoutOut ;
26
25
var axName ;
@@ -47,18 +46,6 @@ function handleDefaults(contIn, contOut, coerce, opts) {
47
46
axOut . type = 'linear' ;
48
47
setConvert ( axOut , contOut , layoutOut ) ;
49
48
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
-
62
49
handlePrefixSuffixDefaults ( axIn , axOut , coerceAxis , axOut . type ) ;
63
50
64
51
if ( visible ) {
0 commit comments