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

조회 수: 14 (최근 30일)
Weiqian Jiang
Weiqian Jiang 2016년 12월 2일
댓글: Weiqian Jiang 2016년 12월 2일
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
  댓글 수: 2
Jan
Jan 2016년 12월 2일
Please do not post details of the question as an answer.
Weiqian Jiang
Weiqian Jiang 2016년 12월 2일
Sorry...Thanks for your help, I'll try.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by