diff --git a/src/utils/vtk-helpers.ts b/src/utils/vtk-helpers.ts index d346073d4..a760d778d 100644 --- a/src/utils/vtk-helpers.ts +++ b/src/utils/vtk-helpers.ts @@ -129,7 +129,7 @@ export function getShiftedOpacityFromPreset( const [xmin, xmax] = effectiveRange; const width = xmax - xmin; - return points.map(([x, y]) => [(x - xmin) / width + shift, y + shiftAlpha]); + return points.map(([x, y]) => [(x - xmin) / width + shift, y - shiftAlpha]); } return null; }