Skip to content

Commit 620cd43

Browse files
committed
Contour plot lines to use non-scaling stroke
1 parent e1a0417 commit 620cd43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/traces/contour/plot.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ function makeLines(plotgroup, pathinfo, contours) {
277277
.attr('d', function(d) {
278278
return Drawing.smoothopen(d, smoothing);
279279
})
280-
.style('stroke-miterlimit', 1);
280+
.style('stroke-miterlimit', 1)
281+
.style('vector-effect', 'non-scaling-stroke');
281282

282283
var closedcontourlines = linegroup.selectAll('path.closedline')
283284
.data(function(d) { return d.paths; });
@@ -288,7 +289,8 @@ function makeLines(plotgroup, pathinfo, contours) {
288289
.attr('d', function(d) {
289290
return Drawing.smoothclosed(d, smoothing);
290291
})
291-
.style('stroke-miterlimit', 1);
292+
.style('stroke-miterlimit', 1)
293+
.style('vector-effect', 'non-scaling-stroke');
292294
}
293295

294296
function clipGaps(plotGroup, plotinfo, cd0, perimeter) {

0 commit comments

Comments
 (0)