필터 지우기
필터 지우기

saveas: problems with axes when saving a figure as .fig

조회 수: 2 (최근 30일)
Iris Hinrichs
Iris Hinrichs 2013년 6월 13일
Hi there,
I created a figure with subplots which I save as a .fig file. Apparently, the axes are changed when the figure is saved or not correctly reproduced when I open the .fig file (by double-clicking on it): The subplots have higher spacings between each other. How do I avoid this?
(I had a look at export_fig, but this does not seem to save figures as .fig files) Thanks, kind regards, Iris

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 13일
편집: Azzi Abdelmalek 2013년 6월 13일
Use hgsave and hgload function
  댓글 수: 1
Iris Hinrichs
Iris Hinrichs 2013년 6월 13일
Thanks, it works for the subplot problem I mentioned above. Unfortunately it does not work for keeping the colorbar labels in the right place. An example: figure imagesc(rand(10,10)) cb = colorbar; set(cb, 'ytick', [0.1:0.3:1], 'yticklabel', {'a'; 'b'; 'c'}) hgsave(gcf,'test.fig')
If you compare the figure as created by this code and the reopened file test.fig, you'll see that the colorbar labels are different. The version I am working on is 7.6.0.324 (R2008a)
Is there a solution for this?

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

추가 답변 (0개)

카테고리

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