Filter löschen
Filter löschen

Why figure toolbar doesn't work in GUI

1 Ansicht (letzte 30 Tage)
Tomislav
Tomislav am 8 Nov. 2012
Kommentiert: Matthew Hockley am 15 Dez. 2018
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 Kommentare
Sean de Wolski
Sean de Wolski am 8 Nov. 2012
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 am 8 Nov. 2012
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 8 Nov. 2012
Bearbeitet: Azzi Abdelmalek am 8 Nov. 2012
put this code in your openingFCN function
set(gcf,'toolbar','figure');
  4 Kommentare
shannon stoffel
shannon stoffel am 1 Sep. 2015
Bearbeitet: shannon stoffel am 1 Sep. 2015
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 am 15 Dez. 2018
Worked perfectly for me, thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by