1111
1212var Lib = require ( '../../lib' ) ;
1313var Plots = require ( '../plots' ) ;
14- var ErrorBars = require ( '../../components/errorbars' ) ;
15-
1614
1715exports . name = 'cartesian' ;
1816
@@ -71,8 +69,7 @@ exports.plot = function(gd) {
7169 for ( var i = 0 ; i < subplots . length ; i ++ ) {
7270 var subplot = subplots [ i ] ,
7371 subplotInfo = fullLayout . _plots [ subplot ] ,
74- cdSubplot = getCdSubplot ( calcdata , subplot ) ,
75- cdError = [ ] ;
72+ cdSubplot = getCdSubplot ( calcdata , subplot ) ;
7673
7774 // remove old traces, then redraw everything
7875 // TODO: use enter/exit appropriately in the plot functions
@@ -91,17 +88,9 @@ exports.plot = function(gd) {
9188 // plot all traces of this type on this subplot at once
9289 var cdModule = getCdModule ( cdSubplot , _module ) ;
9390 _module . plot ( gd , subplotInfo , cdModule ) ;
94- Lib . markTime ( 'done ' + ( cdModule [ 0 ] && cdModule [ 0 ] [ 0 ] . trace . type ) ) ;
9591
96- // collect the traces that may have error bars
97- if ( cdModule [ 0 ] && cdModule [ 0 ] [ 0 ] . trace && Plots . traceIs ( cdModule [ 0 ] [ 0 ] . trace , 'errorBarsOK' ) ) {
98- cdError = cdError . concat ( cdModule ) ;
99- }
92+ Lib . markTime ( 'done ' + ( cdModule [ 0 ] && cdModule [ 0 ] [ 0 ] . trace . type ) ) ;
10093 }
101-
102- // finally do all error bars at once
103- ErrorBars . plot ( gd , subplotInfo , cdError ) ;
104- Lib . markTime ( 'done ErrorBars' ) ;
10594 }
10695
10796 // now draw stuff not on subplots (ie, only pies at the moment)
0 commit comments