Adding image under contour lines took away axes and changed EVERYTHING

1 回表示 (過去 30 日間)
Naomi Amuzie
Naomi Amuzie 2019 年 8 月 15 日
回答済み: Subhadeep Koley 2019 年 8 月 19 日
I added an image under my contour lines. The image doesn't fit the contour lines (I need to work on that, please send resources on resizing, moving, rotating, etc images)
Adding thte image got rid of the axes that were there before when it was only the contour lines. How can I fix this? I need the axes.
For some reason, there's also a bug where what is suppose to go on the next figure window, goes in the first figure window when I added the movegui('direction') function to both figure windows so they're not on top of each other.

回答 (1 件)

Subhadeep Koley
Subhadeep Koley 2019 年 8 月 19 日
The following code might help you:
I=imread('cameraman.tif');
Irgb = cat(3,I,I,I);
imshow(Irgb);
hold all;
contour(I);colormap(hsv);
h = gca;
h.Visible = 'On';
Use your image instead of the mentioned.
untitled.png

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by