Skip to content

Commit

Permalink
colormap range fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bogpetre committed Aug 25, 2024
1 parent bb35a3c commit 26db44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CanlabCore/fmridisplay_helper_functions/render_blobs.m
Original file line number Diff line number Diff line change
Expand Up @@ -900,5 +900,5 @@
range_val = max((c-x1),0)*(y2-y1)./(x2-x1);
end

val = y1 + range_val;
val = min(y1 + range_val,y2); % if value exceeds max, set it to that max
end

0 comments on commit 26db44c

Please sign in to comment.