File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -809,21 +809,16 @@ function selectPoints(searchInfo, polygon) {
809809function style ( gd , cds ) {
810810 if ( ! cds ) return ;
811811
812- var fullLayout = gd . _fullLayout ;
812+ var stash = cds [ 0 ] [ 0 ] . t ;
813+ var scene = stash . scene ;
813814
814- if ( fullLayout . _has ( 'splom' ) ) {
815- // splom clear the whole canvas,
816- // must redraw every subplot
817- for ( var k in fullLayout . _plots ) {
818- var sp = fullLayout . _plots [ k ] ;
819- if ( sp . _scene ) sp . _scene . draw ( ) ;
820- }
821- } else {
822- var stash = cds [ 0 ] [ 0 ] . t ;
823- var scene = stash . scene ;
815+ // don't clear the subplot if there are splom traces
816+ // on the graph
817+ if ( ! gd . _fullLayout . _has ( 'splom' ) ) {
824818 scene . clear ( ) ;
825- scene . draw ( ) ;
826819 }
820+
821+ scene . draw ( ) ;
827822}
828823
829824module . exports = {
Original file line number Diff line number Diff line change @@ -429,6 +429,15 @@ function style(gd, cds) {
429429 var scene = cds [ i ] [ 0 ] . t . _scene ;
430430 scene . draw ( ) ;
431431 }
432+
433+ // redraw all subplot with scattergl traces,
434+ // all we cleared the whole canvas above
435+ if ( fullLayout . _has ( 'cartesian' ) ) {
436+ for ( var k in fullLayout . _plots ) {
437+ var sp = fullLayout . _plots [ k ] ;
438+ if ( sp . _scene ) sp . _scene . draw ( ) ;
439+ }
440+ }
432441}
433442
434443function getDimIndex ( trace , ax ) {
You can’t perform that action at this time.
0 commit comments