saveSameSize

버전 1.0.0.1 (2.97 KB) 작성자: Richard Quist
Easily print/export figure at on-screen size
다운로드 수: 2.7K
업데이트 날짜: 2016/9/1

라이선스 보기

SAVESAMESIZE print/export figure (h) at same size as on screen.
SAVESAMESIZE will adjust printing/exporting related properties so the
figure (h) will print/export the same size as the onscreen display. It
will print/export the figure and then restore the changed properties to
the original values
saveSameSize accepts some optional parameter-value pairs. If used you must
specify BOTH the parameter name (e.g. 'format') AND the parameter value
(e.g. 'png'):
parameter value/meaning
---------- --------------------------------------
'format' output format to generate.
Must be one of the formats supported by the print command

If not specified, jpeg is used as the default

'file' path/name of output file to create

If not specified, 'figure<N>.<ext>' will be used
where <N> is the figure handle and ext
<ext> is the extension corresponding to the
output format chosen

'renderer' Renderer to use when creating the output.
Must be one renderers supported by MATLAB

If not specified, the figure's current renderer will be used

Example usage:
% save current figure to jpeg file named figure<n>.jpg using the
% figure's current renderer
saveSameSize(gcf);

% save current figure to png file named test.png using the
% OpenGL renderer
saveSameSize(gcf, 'format', 'png', 'renderer', 'opengl',...
'file', 'test.png');

See also PRINT

Copyright 2007 The MathWorks, Inc.

인용 양식

Richard Quist (2024). saveSameSize (https://www.mathworks.com/matlabcentral/fileexchange/17868-savesamesize), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.1

Updated license

1.0.0.0

tweaking description