@@ -70,18 +70,18 @@ function plotOne(gd, plotinfo, cd) {
7070 }
7171
7272 // use a heatmap to fill - draw it behind the lines
73- if ( contours . coloring === 'heatmap' ) {
74- if ( trace . zauto && trace . autocontour === false ) {
73+ if ( contours . coloring === 'heatmap' ) {
74+ if ( trace . zauto && ( trace . autocontour === false ) ) {
7575 trace . _input . zmin = trace . zmin =
76- contours . start - contours . size / 2 ;
76+ contours . start - contours . size / 2 ;
7777 trace . _input . zmax = trace . zmax =
7878 trace . zmin + pathinfo . length * contours . size ;
7979 }
8080
8181 heatmapPlot ( gd , plotinfo , [ cd ] ) ;
8282 }
8383 // in case this used to be a heatmap (or have heatmap fill)
84- else fullLayout . _paper . selectAll ( '.hm' + uid ) . remove ( ) ;
84+ else fullLayout . _paper . selectAll ( '.hm ' + uid ) . remove ( ) ;
8585
8686 makeCrossings ( pathinfo ) ;
8787 findAllPaths ( pathinfo ) ;
@@ -472,12 +472,15 @@ function getInterpPx(pi, loc, step) {
472472
473473function makeContourGroup ( plotinfo , cd , id ) {
474474 var plotgroup = plotinfo . plot . select ( '.maplayer' )
475- . selectAll ( 'g.contour.' + id )
475+ . selectAll ( 'g.contour.' + id )
476476 . data ( cd ) ;
477+
477478 plotgroup . enter ( ) . append ( 'g' )
478- . classed ( 'contour' , true )
479- . classed ( id , true ) ;
479+ . classed ( 'contour' , true )
480+ . classed ( id , true ) ;
481+
480482 plotgroup . exit ( ) . remove ( ) ;
483+
481484 return plotgroup ;
482485}
483486
0 commit comments