Skip to content

Commit f5873f1

Browse files
committed
fix contour style when coloring=none
1 parent 0ff2dc4 commit f5873f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/contour/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function style(gd) {
3737
var colorLines = !isConstraintType && contours.coloring === 'lines';
3838
var colorFills = !isConstraintType && contours.coloring === 'fill';
3939

40-
var colorMap = isConstraintType ? null : makeColorMap(trace);
40+
var colorMap = (colorLines || colorFills) ? makeColorMap(trace) : null;
4141

4242
c.selectAll('g.contourlevel').each(function(d) {
4343
d3.select(this).selectAll('path')

0 commit comments

Comments
 (0)