how to save imageof axes for high resolution in ma

2019-08-28 08:32发布

问题:

I trying save image with the comand 'getframe' but resolution is very low, so I can not give zoom. for now I'm using the code:

[arq,dir] = uiputfile('*.jpg','Output Files');
fileName=fullfile(dir,arq);
f=getframe(handles.axes1);
[x,map]=frame2im(f);
imwrite(x,fileName,'jpg');

I need save in jpg and also need save the label (x,y) in graph. How do ? There is another command better than the getframe??

Print is a good command?

Thanks

回答1:

try using something other than jpg, it doesn't scale well. eps is a good choice as it is a vector format.



回答2:

Try exportfig from FEX: exportfig