Enable Rotate or Zoom automatically

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 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeData Exploration についてさらに検索

質問済み:

2014 年 9 月 8 日

コメント済み:

2014 年 9 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by