How can I add or remove the menubar or toolbar from a figure in MATLAB?
229 Ansichten (letzte 30 Tage)
You can use SET command to change the MenuBar and Toolbar properties of the figure to control whether the menubar and toolbar are shown in a MATLAB figure.
The possible values for Menu Bar are:
'none' - the menubar is not shown
'figure' - the menubar is shown
The possible values for ToolBar are:
'none' - the toolbar is not shown
'auto' - the toolbar is controlled by the menubar. If MenuBar is set to 'figure', then the toolbar is shown. If 'MenuBar is set to 'none', then the toolbar isn't shown.
'figure' - the toolbar is shown
For example, the following code will open a figure without the menubar and toolbar:
hFigure = figure;
set(hFigure, 'MenuBar', 'none');
set(hFigure, 'ToolBar', 'none');
Weitere Antworten (1)
KAE am 7 Apr. 2022
Bearbeitet: KAE am 7 Apr. 2022
Even with the instructions, there is still a white bar at the top of the figure, like in screnshot below. (The rest of the figure in the screenshot is black).
How can I get rid of this white bar? What is it called if it's not the Menu Bar or Tool Bar? I don't see any other kinds of "bars" listed in figure properties.