how to save imageof axes for high resolution in matlab GUI

我是研究僧i 提交于 2020-01-16 19:04:08

问题


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



来源:https://stackoverflow.com/questions/16441181/how-to-save-imageof-axes-for-high-resolution-in-matlab-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!