I have made a plot in matlab and the view toolbar appears on my plot (Zooming, Rotating, .... ) buttons. However, when I created a GUI and transfered my plot to gui axes handles, this toolbar disappears. How can I show this toolbar again in gui axes? Thanks in advance
0
votes
1 Answers
1
votes
You can either:
- working with
GUIDEtool you enable it through the figure'sproperty inspectorsetting:MenuBarto display the figureMenuToolBarto display the toolbar for zoom, rotation etc.
- enable these properties directly in the GUI
.mfile: in theOpeningFcn(the GUI Opening function) you can set:
With the dot notation:
hObject.MenuBar='figure'
hObject.ToolBar='figure'
with the "old notation"
set(hObject,'MenuBar','figure')
set(hObject,'ToolBar','figure')
Hope this helps.
Qapla'
