svg_fix_viewbox(in_​name,varargin)

버전 1.0.0.0 (2.47 KB) 작성자: Cris Luengo
Make SVG file stretch with containing HTML element
다운로드 수: 228
업데이트 날짜: 2015/2/11

라이선스 보기

Since R2014b, MATLAB can directly output graphics as SVG files (print -dpng). The generated figure has a fixed size. If you want to include this SVG on your website, you might want it to stretch to the width of the containing HTML element. This function edits the SVG file generated by MATLAB to do just this.
The function also fixes the fonts used: the default figure font is exported as 'SansSerif', which is not recognized by my browser (and I presume many others). The correct CSS name is 'sans-serif'. The function replaces all occurrences of the former with the latter.

인용 양식

Cris Luengo (2024). svg_fix_viewbox(in_name,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/49617-svg_fix_viewbox-in_name-varargin), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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