Image replaced by graph in axes MATLAB GUIDE

Hi all. I have an issue regarding axes displaying image and graph as shown in the sequence of images attached below.
I want to retain my image in the respective axes and plot graph in another axes. For your information, my coding for plotting graph is generally plot(x,y) which I didn't specify the axes to be plotted.
I hope I explained well and look forward for any answer. Thanks in advance :D

 Respuesta aceptada

Image Analyst
Image Analyst el 22 de Oct. de 2016

0 votos

Shrink your axes and set all the units to normalized and it should be OK.

4 comentarios

James Thiem
James Thiem el 22 de Oct. de 2016
Hi Image Analyst. Thank you for your prompt reply.
I tried to shrink the axes and set the units to normalized but still it didn't work. :(
James, you have 2 axes. What are they each called (their "tag"s)? And what image or plot do you want to show up in what axes/location? Right now, both the image and the plot/graph show up in the same axes on the left. Is that right? What is ever going to go into the right axes control?
Are you using axes() to specify the current axes where the next activity will take place?
axes(handles.axesLeft); % Switch to axesLeft
The image you put in there is supposed to stretch or shrink to fit in the widest/tallest direction. Are you saying that if you shrink the left axes to half it's size, that when it goes to plot it still blows it up so big that it overlaps all the other controls? If so, you must be setting the 'Position' property of the axes control.
James Thiem
James Thiem el 23 de Oct. de 2016
Hi Image Analyst. Problem solved! what i left was specifying the axes to be plotted with graph. So i added axes(handles.axesTag) to my coding before plotting graph. This might seem to be easy mistakes because i just learnt about GUIDE.
Millions of thanks for your answer. :)
Image Analyst
Image Analyst el 23 de Oct. de 2016
If my suggestion of adding the axes() call worked, then can you please mark the answer as "Accepted"?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Oct. de 2016

Comentada:

el 23 de Oct. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by