axis off
不起作用。
function displayResults(filename,hObject, eventdata, handles)
% Open 'filename' file... for reading...
fid = fopen(filename);
for N=6:1:10
imagename = fgetl(fid);
if ~ischar(imagename), break, end % Meaning: End of File...
[x,map]=imread(imagename);
rgb=ind2rgb(x,map);
ax = handles.(sprintf('axes%d', N));
axis off;
image(rgb, 'Parent', ax);
end
guidata(hObject,handles)
上述代码的输出结果如下所示:
我在上图中突出了坐标轴。 我使用的所有图像都是具有8位深度的位图。 我不想要那些坐标轴,该怎么办?
axis(ax, 'off')
(显式指定目标轴)。如果存在title
,设置visible=off也会隐藏它。 - Amrotype axis
就想起了很多有趣的东西 :) - Eitan T