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

112 views (last 30 days)
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?

Accepted Answer

mizuki
mizuki on 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 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Display Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!