Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Scott
Posts:
13
Registered:
10/31/12


Re: Adding line/rectangle to an image in a axis on a GUI
Posted:
Oct 31, 2012 3:25 AM


NOT QUITE SOLVED.
One more wrinkle that doesn't seem to work.
I can use the tricks above to get the axis to not rescale/change size when a rectangle is added. But what if I want to display a different picture with a different size on the axis? How do I get matlab to change the axis size in this case and then go back to not changing it when I put new rectangles on it?
I've tried various combinations of axis auto; and axis manual; but they don't seem to work. The problem is that it doesn't rescale the axis depending on the new image size. Instead, it just continues the new image off of the page (GUI window).
Thanks for any help.



