Using RRBOX with a button on a figure

Hi, I am trying to do something that is probably simple, I just don't know where the to find the right answer. I am generating a figure with a number of points and want to be able to select some of them using the RRBOX function. The button I have created to do this seems to work fine when the figure first comes up, but if I switch the mouse function over to ZOOM IN/ZOOM OUT then I start to have problems. If I switch the mouse function back to EDIT PLOT, then I am no longer able to "push" the button, but rather I select the button (I can modify its shape/size). Is there another button that I can put on my figure that switches the mouse function back to its original state?

 采纳的回答

Matt Fig
Matt Fig 2011-3-22
If you click on the pointer arrow 2 times, the cursor will be back like it was when the plot was first made.

1 个评论

Thanks Matt, I will try this out. The other question I had was that when I added my own button to the figure, the default tool bar with the zoom/pan buttons doesn't appear. I had been changing the function of the mouse using the drop down menus. Is there a simple way to re-add that tool bar back onto the figure? Thanks again for the quick response.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by