Save axes plot as '.fig' in a GUI
48 views (last 30 days)
Show older comments
Manuel on 9 Sep 2013
Commented: loghman on 4 Feb 2018
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);
saveas(gca, saveDataName, 'fig');
But this commands save all the GUI interface as '.fig'. Any help will be welcome.
Thanks in advance!
Jan on 9 Sep 2013
The FIG format contains the complete figure (as the name says already). If you want to save a single axes only and definitely want the FIG format, you can copy the axes to a new figure:
Fig1 = figure;
AxesH = axes;
Fig2 = figure;
More Answers (1)
Sean de Wolski on 9 Sep 2013
loghman on 4 Feb 2018
copyobj doesn't work for axes with multiple coordinated system. what should i do?
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!