Save axes plot as '.fig' in a GUI
古いコメントを表示
I have a GUI in which one an axes is located with a plot and I would like to save this axes as '.fig' file. I have tried with :
[FileName,PathName] = uiputfile;
saveDataName = fullfile(PathName,FileName);
axes(handles.Graph1_axes);
saveas(gca, saveDataName, 'fig');
But this commands save all the GUI interface as '.fig'. Any help will be welcome.
Thanks in advance!
採用された回答
その他の回答 (1 件)
Sean de Wolski
2013 年 9 月 9 日
1 投票
5 件のコメント
Image Analyst
2013 年 9 月 9 日
I agree. I think it would be a better idea to save the axes as a .PNG file (a widely used lossless compression format) rather than a .fig file. Then the picture will be available to any program, not just MATLAB.
Manuel
2013 年 9 月 10 日
Jan
2013 年 9 月 10 日
What about using hgsave directly.
loghman
2018 年 2 月 4 日
copyobj doesn't work for axes with multiple coordinated system. what should i do?
loghman
2018 年 2 月 4 日
copyobj doesn't work for axes with multiple coordinated system. what should i do?
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!