delete the figure header ?

65 ビュー (過去 30 日間)
Max Müller
Max Müller 2014 年 9 月 4 日
回答済み: Eran Bernstein 2021 年 10 月 19 日
Hey Guys, me again. Is it possible to delete the header of a figure. by header I mean the area where the name of the figure and the cross the close the figure are. I just want a empty figure....without anything. I use 'MenuBar', 'None' to delete the menuBar but its not empty enough.
  2 件のコメント
Hikaru
Hikaru 2014 年 9 月 4 日
Not sure if I understood your question, you might want to show pictures here.
But if you just want an empty figure (just the plot area/without the menu bar) you could use Edit >> Copy figure and paste it somewhere else
Max Müller
Max Müller 2014 年 9 月 4 日
if u type in the command window:
figure('MenuBar', 'None')
you will get an empty figure. But it still has the minimize button, the maximize button and the close button in the top right corner. Also it show the name next to these buttons. Now i want all of it to disappear.

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

採用された回答

Adam
Adam 2014 年 9 月 4 日
I don't think you can have a figure without the title bar. It's pretty much a common part of any application window in Windows, nevermind just a Matlab figure.
You can get rid of the default figure number with:
figure('MenuBar', 'None', 'NumberTitle', 'off')
but you still get the title bar with minimize, maximize etc.
  1 件のコメント
Max Müller
Max Müller 2014 年 9 月 4 日
meh...ok...thanks

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

その他の回答 (1 件)

Eran Bernstein
Eran Bernstein 2021 年 10 月 19 日
Got the same problem and fixed it by editing 'WindowState' to fullscreen after removing the menu bar. It's does a similar effect to pressing F11 in Chrome and other programs and pressing 'Esc' afterwards exits fullscreen mode and reverts 'WidowState' back to normal.
fig = figure('MenuBar','none');
fig.WindowState = 'fullscreen';

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by