How to prevent axis off from removing the subtitle?
    1 Ansicht (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
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...)

0 Kommentare
Antworten (1)
  Chris
      
 am 27 Okt. 2021
        
      Bearbeitet: Chris
      
 am 27 Okt. 2021
  
      img = imread('cameraman.tif');
figure;
tiledlayout(1,1)
imagesc(img);
title('A');
subtitle('B');
axis off
tiledlayout requires R2019b or newer.
1 Kommentar
  Chris
      
 am 27 Okt. 2021
				For older versions of Matlab:
img = imread('cameraman.tif');
figure;
subplot(1,1,1)
imagesc(img);
title('A');
subtitle('B');
axis off
Siehe auch
Kategorien
				Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

