How to save current figure as a picture such as png or bmp?

2 次查看(过去 30 天)
Hi there, I've used the 'print' and 'saveas' function to save my current figure as a picture, but I found the picture I've saved is not the same as I saw on the figure window, especially the text coordinate, all lines seem to crowd together, or the picture saved included the task bar of the Windows system.
here's my code: cd(savepicpath); % saveas(gcf,[matname(1:end-4) '_PR.png
Many thanks for any advice! <<
>>
']); print(gcf,'-dbmp',sprintf([matname(1:end-4) '_PR.bmp']));

采纳的回答

Jan
Jan 2016-12-2
编辑:Jan 2016-12-2
Set the PaperPosition and PaperSize or the figure properly.

更多回答(1 个)

Weiqian Jiang
Weiqian Jiang 2016-12-2
And this is the distorted picture I've saved

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by