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!