M-File Help: pickregion View code for pickregion

pickregion

Pick a rectangular region of a figure using mouse

[p1,p2] = pickregion() initiates a rubberband box at the current click point and animates it so long as the mouse button remains down. Returns the first and last coordinates in axis units.

Options

'axis', A The axis to select from (default current axis)
'ls', LS Line style for foreground line (default ':y');
'bg'LS, Line style for background line (default '-k');
'width', W Line width (default 2)
'pressed' Don't wait for first button press, use current position

Notes

Author

Based on rubberband box from MATLAB Central written/Edited by Bob Hamans (B.C.Hamans@student.tue.nl) 02-04-2003, in turn based on an idea of Sandra Martinka's Rubberline.


 

© 1990-2014 Peter Corke.