Set Image Axis as Primary Axis
古いコメントを表示
I have a figure of a plot/graph I would like to load into MATLAB (first figure below) that has its own axes. I would like to make these axes my working axes as I need to plot data on top of this graph at particular points corresponding to the figure's axis. However, when I load the image, MATLAB generates it's own axis(second figure). If it wasn't for the fact that the figure axis is on a log-log scale, this might not be a problem.
Any help would be appreciated it. Thanks!


6 件のコメント
Ameer Hamza
2020 年 3 月 11 日
How are you displaying the image? By default imshow() does not display axes.
Josh Bridges
2020 年 3 月 11 日
Ameer Hamza
2020 年 3 月 11 日
You can make the axis invisible again. See my answer. Now, how to synchronize these both axis is a seperate issue.
Josh Bridges
2020 年 3 月 11 日
Ameer Hamza
2020 年 3 月 11 日
I recently answered another question dealing with synchronization of axes: https://www.mathworks.com/matlabcentral/answers/509899-plot-with-two-related-x-axes. Although these two cases are not different, however, the basic idea is the same. You can see that answer to come up with a solution. If no one else posted a solution until tomorrow, then I will try to post a solution.
Ameer Hamza
2020 年 3 月 12 日
Josh, check the code in my updated answer.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
