Using imagesc in GUI, is there a way to limit the size of the figure?

1 view (last 30 days)
Hi all,
So I'm writing code to create a GUI that shows how radar sensors perform throughout time (using colors), and imagesc. I am trying to tie in the imagesc plots with a slider, so that one can go back and forth between imagesc plots. However, no matter what I do the imagesc engulfs the entire GUI interface. Is there anyway around this?
Cheers,
Ashley

Answers (1)

Image Analyst
Image Analyst on 29 Apr 2014
The image should stay within the axes. It will scale the image to fit inside them. How many axes are on the GUI? What are their 'units' and 'position' property values?
  3 Comments
Image Analyst
Image Analyst on 29 Apr 2014
When you said " the imagesc plots" I assumed there was more than one up there simultaneously. If there's only one, then answer by second question. Or attach your .fig file and .m file, or show me the call to uicontrol() if you're trying to build the interface all by yourself one control at a time.
Image Analyst
Image Analyst on 29 Apr 2014
Are you sure you're not doing something like this: http://www.mathworks.com/matlabcentral/answers/96023 to make the image the whole background of the GUI? You need to put it into an axes, not the figure.

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!