Skip to content

Commit

Permalink
[feat] allow plotting logical arrays in mcxplotvol
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jan 3, 2025
1 parent eafea84 commit 8f433e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/image3i.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
if nargin < 3 || handle == 0
% Make a new surface
h = surface('XData', x, 'YData', y, 'ZData', z, ...
'CData', im, ...
'CData', double(im), ...
'FaceColor', 'texturemap', ...
'EdgeColor', 'none', ...
'LineStyle', 'none', ...
Expand All @@ -145,7 +145,7 @@
'CDataMapping', 'direct');
else
% Reuse old surface
set(handle, 'XData', x, 'YData', y, 'ZData', z, 'CData', im);
set(handle, 'XData', x, 'YData', y, 'ZData', z, 'CData', double(im));
h = handle;
end

Expand Down

0 comments on commit 8f433e9

Please sign in to comment.