フィルターのクリア

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 Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by