Enable Rotate or Zoom automatically

조회 수: 3 (최근 30일)
Hamad
Hamad 2014년 9월 8일
댓글: Hamad 2014년 9월 8일
Hi, is it possible to enable the "rotate" or "zoom" buttons for newly-created plot figures automatically?
I have tried:
h = figure;
get(h,'WindowButtonDownFcn')
But this is blank when the toolbar of "h" has no button pressed, and pressing the rotate button and then running
get(h,'WindowButtonDownFcn')
is not very informative to me.
I know that simply clicking on "rotate" or "zoom" is easy, but I am plotting a large number of figures, so it would really be convenient if these buttons were enabled automatically upon the creation of the plot.
Thanks, Hamad

채택된 답변

Joseph Cheng
Joseph Cheng 2014년 9월 8일
it is very possible to do so. check out for zoom and on the left side of that link there is one for rotate. specifically as a short example you can go
figH = figure,plot(rand(5,10))
zoomH = zoom(figH)
set(zoomH,'Enable','on');
  댓글 수: 1
Hamad
Hamad 2014년 9월 8일
Thanks very much, Joseph. Really helpful. Best wishes, Hamad.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by