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일

0 개 추천

If you click on the pointer arrow 2 times, the cursor will be back like it was when the plot was first made.

댓글 수: 1

Michael
Michael 2011년 3월 22일
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에 대해 자세히 알아보기

태그

질문:

2011년 3월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by