Info

This question is closed. Reopen it to edit or answer.

Clip "getrect" to specified axes

1 view (last 30 days)
Dan
Dan on 10 Jan 2012
Closed: Sabin on 19 Dec 2022
Hi,
I am working with a GUIDE-developed GUI which contains a couple of axes, some buttons, and other ui elements. I'm playing around with using getrect() on one of the axes. Everything is working great aside from the fact that the cursor and dragged rectangle is allowed to operate beyond the limits of the axes. For example, once I call getrect() and the cursor changes to a crosshair I am able to drag and create the outline rectangle over a blank region of the figure.
I can easily clamp the returned values to the extents of the axes programmatically, but I would like to keep the crosshair and dragged outline from appearing outside the axes. I am specifying the target axes handle when calling getrect().
Is there a property I can set which functions like the "Clipping" property on text objects?
Using R2011b and Image Processing Toolbox 7.3
Thanks in advance for any responses / suggestions.
-- Dan

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!