fit the figure to new axes in new GUI

1 view (last 30 days)
meysam
meysam on 2 Sep 2014
Edited: meysam on 2 Sep 2014
hi, I have a main GUI with some components like push buttons and so on. another GUI has been created to show the results and the figure. now I want to plot the results in the axes in the second GUI via the push button in the main GUI. the problem is that the results plot in whole of the second GUI instead of in the axes range I have put it for this. how can I fix it?
  2 Comments
John
John on 2 Sep 2014
From what you have described it appears the plot fills up the whole of the 2nd GUI instead of being rendered in the axes object placed within the 2nd figure. When you call the plot command you need to pass in as a parameter, the handle to the axes object in the 2nd GUI .... if I am not wrong. There are probably a variety of ways to do this
meysam
meysam on 2 Sep 2014
Edited: meysam on 2 Sep 2014
r=getappdata(findobj('tag','resultsFIG'),'UsedByGUIData_m');
axes(r.resultAX);
this is the code to guide the figure where to plot. r.resultAX is the handle of the axes in 2nd GUI.

Sign in to comment.

Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!