【问题标题】:How to prevent axis off from removing the subtitle?如何防止轴关闭删除字幕?
【发布时间】:2021-10-27 22:37:20
【问题描述】:

如何防止axis off去掉字幕? Nemely,我只想删除 x、y 轴,而不是字幕本身。

img = imread('cameraman.tif');
figure;
imagesc(img);
title('A');
subtitle('B');

如果我在末尾添加axis off,它会给我:(字幕B 不见了......)

【问题讨论】:

    标签: matlab plot subtitle


    【解决方案1】:

    您可以执行以下操作:

    img = imread('cameraman.tif');
    figure;
    imagesc(img);
    title('A');
    subtitle('B');
    set(gca,'xtick',[]);
    set(gca,'xticklabel',[]);
    set(gca,'ytick',[]);
    set(gca,'yticklabel',[]);
    

    【讨论】:

      猜你喜欢
      • 2021-06-05
      • 2013-01-15
      • 1970-01-01
      • 2021-12-07
      • 1970-01-01
      • 1970-01-01
      • 2021-12-07
      • 2020-09-24
      • 2015-07-07
      相关资源
      最近更新 更多