Is it possible to show the x,y axis values for an image?

93 vues (au cours des 30 derniers jours)
Ronan
Ronan le 8 Sep 2016
Commenté : Thorsten le 8 Sep 2016
I m trying to use an image from matlab in a paper, but I want to show the x,y axis. However when you use imshow(myImage); it doesn't show the values on the x,y axis. i.e. these are coordinates of the pixels. How do I display this?

Réponse acceptée

mizuki
mizuki le 8 Sep 2016
Get the handle of the axis and set the 'Visible' property to 'on'
imshow('peppers.png');
h = gca;
h.Visible = 'On';
  5 commentaires
Star Strider
Star Strider le 8 Sep 2016
My pleasure.
Thorsten
Thorsten le 8 Sep 2016

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