File tree 2 files changed +16
-12
lines changed 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) {
809
809
function style ( gd , cds ) {
810
810
if ( ! cds ) return ;
811
811
812
- var fullLayout = gd . _fullLayout ;
812
+ var stash = cds [ 0 ] [ 0 ] . t ;
813
+ var scene = stash . scene ;
813
814
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' ) ) {
824
818
scene . clear ( ) ;
825
- scene . draw ( ) ;
826
819
}
820
+
821
+ scene . draw ( ) ;
827
822
}
828
823
829
824
module . exports = {
Original file line number Diff line number Diff line change @@ -429,6 +429,15 @@ function style(gd, cds) {
429
429
var scene = cds [ i ] [ 0 ] . t . _scene ;
430
430
scene . draw ( ) ;
431
431
}
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
+ }
432
441
}
433
442
434
443
function getDimIndex ( trace , ax ) {
You can’t perform that action at this time.
0 commit comments