Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Clip "getrect" to specified axes
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!