Skip to content

Commit 573bb19

Browse files
authored
Merge pull request #4725 from plotly/fix-wave-fn-extreme-opacityscale
Fix "extremes" opacityscale function
2 parents d37895b + eeb32a4 commit 573bb19

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/traces/surface/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createWave(n, minOpacity) {
2424
var v = minOpacity + (1 - minOpacity) * (1 - Math.pow(Math.sin(n * u * Math.PI), 2));
2525
arr.push([
2626
u,
27-
Math.max(1, Math.min(0, v))
27+
Math.max(0, Math.min(1, v))
2828
]);
2929
}
3030
return arr;
Loading

0 commit comments

Comments
 (0)