How to change the origin axis of image?

20 views (last 30 days)
So I have an image 201*181 pixel, I have already plot the axis along the image the result like the pic below. Now I want to chage the origin of axis to the position i mark. Can anyone help me please, i know this is a simple problem but I cant seem to know the right function to do that.Capture.PNG
  2 Comments
Walter Roberson
Walter Roberson on 15 Aug 2019
Is it acceptable if just the label is changed, or do you need data cursor and GetPoint to report back in terms of the shifted coordinates ?
Hieu Phan
Hieu Phan on 15 Aug 2019
Edited: Hieu Phan on 15 Aug 2019
I just need to chage the label, the axis is just something I want to show to understand the coordinate system, it not the data invole.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 15 Aug 2019
ax = gca;
set(ax, 'YTickLabel', get(ax, 'YTick') - 100 )

More Answers (0)

Community Treasure Hunt

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

Start Hunting!