|
Hello,
suppose you have a figure with some plot. I would like the user to be able to drag a little selection square in some area of the plot. After the selection has been performed, I would like to obtain the x1,x2,y1,y2 coordinates of the square and e.g. perform an new computation of the plot with in the new coordinates. This is not supposed to be a simple zoom (like the magnification glass from the toolbar) as I want to recompute the plot to obtain a higher precision.
The plot I am talking about may possibly be within a solitary figure like created by a figure(1) command, or possibly an axis within a GUI figure.
I am quite sure that there must either be a very simple way to do this, or someone has written the code already. So I'd be greatful for some help.
Regards,
Alexander
|