이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Trim the whitespace from a SVG file by setting the viewBox equal to the bounding box.
Requires ImageMagick installed to obtain the bounding box.
Example:
x = 0:pi/100:2*pi;
figure;subplot(2,1,1);plot(x,sin(x));ylabel('Sine');
subplot(2,1,2);plot(x,cos(x));ylabel('Cosine');
saveas(gcf,'test.svg'); %For instance insert this file into Word, and there is whitespace around the plot.
trimSVGFile('test.svg');
%Now insert this file into Word, and there is no whitespace.
인용 양식
Ivar Eskerud Smith (2026). Trim whitespace from SVG file (https://kr.mathworks.com/matlabcentral/fileexchange/69152-trim-whitespace-from-svg-file), MATLAB Central File Exchange. 검색 날짜: .
Inspired by: https://se.mathworks.com/matlabcentral/fileexchange/49617-svg_fix_viewbox-in_name-varargin
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0 |
