필터 지우기
필터 지우기

How to prevent axis off from removing the subtitle?

조회 수: 2 (최근 30일)
hmhuang
hmhuang 2021년 10월 27일
댓글: Chris 2021년 10월 27일
How to prevent axis off from removing the subtitle? Nemely, I just want to remove the x, y axes but not the subtitle itself.
img = imread('cameraman.tif');
figure;
imagesc(img);
title('A');
subtitle('B');
If I add axis off at the end it gives me: (The subtitle B is gone...)

답변 (1개)

Chris
Chris 2021년 10월 27일
편집: Chris 2021년 10월 27일
img = imread('cameraman.tif');
figure;
tiledlayout(1,1)
imagesc(img);
title('A');
subtitle('B');
axis off
tiledlayout requires R2019b or newer.
  댓글 수: 1
Chris
Chris 2021년 10월 27일
For older versions of Matlab:
img = imread('cameraman.tif');
figure;
subplot(1,1,1)
imagesc(img);
title('A');
subtitle('B');
axis off

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by