Skip to content

Commit

Permalink
Merge pull request #7002 from plotly/fix-isosurface-vMax
Browse files Browse the repository at this point in the history
Fix `isosurface` maximum value calculation when `isomax` is set to null
  • Loading branch information
archmoj committed May 22, 2024
2 parents 380fa8c + 404979e commit 5d6d457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions draftlogs/7002_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix isosurface maximum value calculation when `isomax` is set to null [[#7002](https://github.com/plotly/plotly.js/pull/7002)]
2 changes: 1 addition & 1 deletion src/traces/isosurface/calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function calc(gd, trace) {
trace._minValues = min;
trace._maxValues = max;
trace._vMin = (trace.isomin === undefined || trace.isomin === null) ? min : trace.isomin;
trace._vMax = (trace.isomax === undefined || trace.isomin === null) ? max : trace.isomax;
trace._vMax = (trace.isomax === undefined || trace.isomax === null) ? max : trace.isomax;

colorscaleCalc(gd, trace, {
vals: [trace._vMin, trace._vMax],
Expand Down

0 comments on commit 5d6d457

Please sign in to comment.