Save axes plot as '.fig' in a GUI
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 9 Sep. 2013
1 Stimme
5 Kommentare
Image Analyst
am 9 Sep. 2013
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
am 10 Sep. 2013
Jan
am 10 Sep. 2013
What about using hgsave directly.
loghman
am 4 Feb. 2018
copyobj doesn't work for axes with multiple coordinated system. what should i do?
loghman
am 4 Feb. 2018
copyobj doesn't work for axes with multiple coordinated system. what should i do?
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!