Skip to content

Commit 8f433e9

Browse files
committed
[feat] allow plotting logical arrays in mcxplotvol
1 parent eafea84 commit 8f433e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/image3i.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
if nargin < 3 || handle == 0
136136
% Make a new surface
137137
h = surface('XData', x, 'YData', y, 'ZData', z, ...
138-
'CData', im, ...
138+
'CData', double(im), ...
139139
'FaceColor', 'texturemap', ...
140140
'EdgeColor', 'none', ...
141141
'LineStyle', 'none', ...
@@ -145,7 +145,7 @@
145145
'CDataMapping', 'direct');
146146
else
147147
% Reuse old surface
148-
set(handle, 'XData', x, 'YData', y, 'ZData', z, 'CData', im);
148+
set(handle, 'XData', x, 'YData', y, 'ZData', z, 'CData', double(im));
149149
h = handle;
150150
end
151151

0 commit comments

Comments
 (0)