The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Adding line/rectangle to an image in a axis on a GUI
Replies: 2   Last Post: Oct 31, 2012 3:25 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 16
Registered: 10/31/12
Re: Adding line/rectangle to an image in a axis on a GUI
Posted: Oct 31, 2012 3:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.