필터 지우기
필터 지우기

How to save figure as appears on the screen? with the same aspect ratio, and font size, etc. ?

조회 수: 5 (최근 30일)
figure('units','normalized','outerposition',[0 0 .5 1]);
hist(rand(100));
saveas(gcf,sprintf('%s.png',mfilename));
For example in this case the output png is not a portrait format, however the figure window is.

답변 (2개)

Image Analyst
Image Analyst 2016년 6월 3일

thomas weldon
thomas weldon 2018년 6월 21일
편집: Walter Roberson 2018년 6월 25일
Try this:
fig=gcf;ax=fig.CurrentAxes;fig.Color='w';fig.OuterPosition=fig.InnerPosition;

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by