Adding image under contour lines took away axes and changed EVERYTHING

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Subhadeep Koley
Subhadeep Koley il 19 Ago 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

Community Treasure Hunt

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

Start Hunting!

Translated by