MATLAB Answers

Adding image under contour lines took away axes and changed EVERYTHING

3 views (last 30 days)
Naomi Amuzie
Naomi Amuzie on 15 Aug 2019
Answered: Subhadeep Koley on 19 Aug 2019
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.

  0 Comments

Sign in to comment.

Answers (1)

Subhadeep Koley
Subhadeep Koley on 19 Aug 2019
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

  0 Comments

Sign in to comment.


Translated by