@@ -70,18 +70,18 @@ function plotOne(gd, plotinfo, cd) {
70
70
}
71
71
72
72
// 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 ) ) {
75
75
trace . _input . zmin = trace . zmin =
76
- contours . start - contours . size / 2 ;
76
+ contours . start - contours . size / 2 ;
77
77
trace . _input . zmax = trace . zmax =
78
78
trace . zmin + pathinfo . length * contours . size ;
79
79
}
80
80
81
81
heatmapPlot ( gd , plotinfo , [ cd ] ) ;
82
82
}
83
83
// 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 ( ) ;
85
85
86
86
makeCrossings ( pathinfo ) ;
87
87
findAllPaths ( pathinfo ) ;
@@ -472,12 +472,15 @@ function getInterpPx(pi, loc, step) {
472
472
473
473
function makeContourGroup ( plotinfo , cd , id ) {
474
474
var plotgroup = plotinfo . plot . select ( '.maplayer' )
475
- . selectAll ( 'g.contour.' + id )
475
+ . selectAll ( 'g.contour.' + id )
476
476
. data ( cd ) ;
477
+
477
478
plotgroup . enter ( ) . append ( 'g' )
478
- . classed ( 'contour' , true )
479
- . classed ( id , true ) ;
479
+ . classed ( 'contour' , true )
480
+ . classed ( id , true ) ;
481
+
480
482
plotgroup . exit ( ) . remove ( ) ;
483
+
481
484
return plotgroup ;
482
485
}
483
486
0 commit comments