Saving graph produced in MATLAB maximized to fullscreen

耗尽温柔 提交于 2019-12-09 07:33:21

问题


I am producing graphs in MATLAB using the following command saveas(gcf, 'save.jpg']). However the image that is saved is small. I would like to maximize the graph produced and save the maximized graph. Is this possible?


回答1:


I have looked for this solution for a very a long time, and believe I have found it. The run-time requirements to save the maximized graph seem to be larger than normal because the resolution and image size must be transformed... just something to be aware of.

figure('units','normalized','outerposition',[0 0 1 1]);
set(gcf, 'PaperPositionMode', 'auto');

the first command maximizes the image on your screen, and the second command prepares it to be saved at that size and resolution.



来源:https://stackoverflow.com/questions/36415522/saving-graph-produced-in-matlab-maximized-to-fullscreen

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