Why is my title not showing when i display my image?

39 vues (au cours des 30 derniers jours)
Karim Aawar
Karim Aawar le 24 Août 2022
Anyone has any idea why? i can see the image but i can never see the title. i tried placing it before my gca paramters and it didnt work either
imshow(strain_image)
set(gca,'DataAspectRatioMode','auto')
title("0.5mm-1mm Agarose Phantom")
set(gca,'Position',[0 0 1 1])
colormap("jet")
Thanking you in advance :)

Réponse acceptée

Mathieu NOE
Mathieu NOE le 29 Août 2022
hello
because now your image fills all the space, the title is hidden
try with a smaller height :
imshow(strain_image)
set(gca,'DataAspectRatioMode','auto')
title("0.5mm-1mm Agarose Phantom")
% set(gca,'Position',[0 0 1 1])
set(gca,'Position',[0 0 1 0.9]) % 4th parameter must be < 1
colormap("jet")
  3 commentaires
Duncan Carlsmith
Duncan Carlsmith le 6 Avr 2023
Thank you!
Shwetabahen Rangani
Shwetabahen Rangani le 8 Juil 2023
Thanks !!!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by