I am trying to save a figure from a GUI I made. However, I have tried several methods using code from this forum. Unfortunately, I can't get any of them to keep the axes, colorbar, and colormap of the original plot. Here is the code I am using:
[filename,pathname] = uiputfile('default','Save your GUI settings');if pathname == 0 %if the user pressed cancelled, then we exit this callback
return end saveDataName = fullfile(pathname,filename); F=getframe(handles.axes1); figure(); image(F.cdata); saveas(gcf,saveDataName,'fig')
thank you for your help!
Best Answer