.fig file opens in non-editable way

조회 수: 4 (최근 30일)
Steeven
Steeven 2018년 3월 1일
댓글: Qi Tan 2021년 7월 11일
I have a simple script that plots some data. The plots are shown on the screen as by default and I use the saveas function to save them as .fig files as well.
This works fine, although when I double-click the .fig-files, they are not shown. I read that this is due to them being set to invisible.
I therefore use this line in the top of my document to make everything visible:
set(0,'DefaultFigureVisible','on')
This works! The graphs are showing as always while the script is running, and the saved .fig-files can now be opened.
But... they are now in an un-editable format. I can only view them but not edit them because the menu in the top of the figure window has disappeared! See the difference on the below images. How can I get it back so I can save the graphs for later edit?

답변 (1개)

Jan
Jan 2018년 3월 1일
set(gcf, 'Menubar', 'figure', 'Toolbar', 'figure')
  댓글 수: 2
Jan
Jan 2018년 3월 2일
@Steeven: "I read that this is due to them being set to invisible." Where did you read this? The saved figures are invisible, if they were so before saving.
Did you modify the DefaultFigureVisibility? Do you set 'Visisble' to 'off' before saving? Do you have any idea, why the toolbar and menubar vanishes in your case? This is not the standard behavior.
Qi Tan
Qi Tan 2021년 7월 11일
hi, I offer one possible situation, I met today: savefig in the live script... Thank you for your solution!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by