Problem in saving figure
2 次查看(过去 30 天)
显示 更早的评论
hgexport(gcf, 'figure1.jpg', hgexport('factorystyle'), 'Format', 'jpeg');
By using above function I am saving figure which is shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156492/image.png)
But I want to save it as shown below: (with outer white portion of image)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156494/image.png)
How can I do so?
2 个评论
Walter Roberson
2014-2-11
Sorry, you do or you do not want the white part with the numbers and ticks?
采纳的回答
Mischa Kim
2014-2-11
5 个评论
Mischa Kim
2014-2-11
Just use the export command you have been using:
hgexport(gcf, 'figure1.jpg', hgexport('factorystyle'), 'Format', 'jpeg');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!