如何防止axis off洗掉字幕?Nemely,我只想洗掉 x、y 軸而不是字幕本身。
img = imread('cameraman.tif');
figure;
imagesc(img);
title('A');
subtitle('B');
如果我axis off在最后添加它會給我:(副標題B不見了......)

uj5u.com熱心網友回復:
您可以執行以下操作:
img = imread('cameraman.tif');
figure;
imagesc(img);
title('A');
subtitle('B');
set(gca,'xtick',[]);
set(gca,'xticklabel',[]);
set(gca,'ytick',[]);
set(gca,'yticklabel',[]);
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/339552.html
