11
11
12
12
var Registry = require ( '../../registry' ) ;
13
13
var Lib = require ( '../../lib' ) ;
14
- var _ = Lib . _ ;
15
14
var Axes = require ( '../../plots/cartesian/axes' ) ;
16
15
17
16
var histogram2dCalc = require ( '../histogram2d/calc' ) ;
@@ -83,21 +82,21 @@ module.exports = function calc(gd, trace) {
83
82
84
83
function noZsmooth ( msg ) {
85
84
zsmooth = trace . _input . zsmooth = trace . zsmooth = false ;
86
- Lib . notifier ( _ ( gd , 'cannot use zsmooth: "fast"' ) + '<br> ' + msg ) ;
85
+ Lib . warn ( 'cannot use zsmooth: "fast": ' + msg ) ;
87
86
}
88
87
89
88
// check whether we really can smooth (ie all boxes are about the same size)
90
89
if ( zsmooth === 'fast' ) {
91
90
if ( xa . type === 'log' || ya . type === 'log' ) {
92
- noZsmooth ( _ ( gd , 'log axis found' ) ) ;
91
+ noZsmooth ( 'log axis found' ) ;
93
92
}
94
93
else if ( ! isHist ) {
95
94
if ( x . length ) {
96
95
var avgdx = ( x [ x . length - 1 ] - x [ 0 ] ) / ( x . length - 1 ) ,
97
96
maxErrX = Math . abs ( avgdx / 100 ) ;
98
97
for ( i = 0 ; i < x . length - 1 ; i ++ ) {
99
98
if ( Math . abs ( x [ i + 1 ] - x [ i ] - avgdx ) > maxErrX ) {
100
- noZsmooth ( _ ( gd , 'x scale is not linear' ) ) ;
99
+ noZsmooth ( 'x scale is not linear' ) ;
101
100
break ;
102
101
}
103
102
}
@@ -107,7 +106,7 @@ module.exports = function calc(gd, trace) {
107
106
maxErrY = Math . abs ( avgdy / 100 ) ;
108
107
for ( i = 0 ; i < y . length - 1 ; i ++ ) {
109
108
if ( Math . abs ( y [ i + 1 ] - y [ i ] - avgdy ) > maxErrY ) {
110
- noZsmooth ( _ ( gd , 'y scale is not linear' ) ) ;
109
+ noZsmooth ( 'y scale is not linear' ) ;
111
110
break ;
112
111
}
113
112
}
0 commit comments