Why figure toolbar doesn't work in GUI

2 ビュー (過去 30 日間)
Tomislav
Tomislav 2012 年 11 月 8 日
コメント済み: Matthew Hockley 2018 年 12 月 15 日
I have created figure toolbar in GUIDE with toolbar editor, and put some usual stuff, zoom in, out, pan, data cursor and print.
And nothing of those seems to work. Why? And when I run GUI it let me turn on more functions at once?!
Thanks.
  6 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 11 月 8 日
Huh?
I would put it in the myGUI_outputfcn but once again I'd be more curious to find the root cause of it not working in the first place...
Tomislav
Tomislav 2012 年 11 月 8 日
Its a lot of code - 866 lines. It is hard to figure out in some dicent time. And I need quick answer. Sry.
Nothing seems to work.
Only when i type: set(gcf,'toolbar','figure');
but then I get, besides what I wanted, an empty figure with toolbar...
Thanks.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 8 日
編集済み: Azzi Abdelmalek 2012 年 11 月 8 日
put this code in your openingFCN function
set(gcf,'toolbar','figure');
  4 件のコメント
shannon stoffel
shannon stoffel 2015 年 9 月 1 日
編集済み: shannon stoffel 2015 年 9 月 1 日
Could you clarify what you did? I am having the exact same problem. I have less than 300 lines of code though.
Matthew Hockley
Matthew Hockley 2018 年 12 月 15 日
Worked perfectly for me, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by