MATLAB Answers

0

Adding image under contour lines took away axes and changed EVERYTHING

Asked by Naomi Amuzie on 15 Aug 2019
Latest activity Answered by 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.

1 Answer

Answer by 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.