Matlab中的修复边界框输出封装的PASScript(.EPS)文件

收录时间:2018-08-24
资源分类:Matlab 工具:MATLAB 7.1.0 (R14SP3)

Matlab中的修复边界框输出封装的PASScript(.EPS)文件

 

Fix bounding box in MATLAB exported encapsulated postscript (.eps) files

I found that the bounding box on matlab exported eps files was too large on the left and right side. This script just reads in the .eps file and reduces the bbox.

 

% matlab seems to compute a bounding box on eps files which is too

% large in the x-direction

%

% this script fixes the bounding box.

% it is 99% stolen from fixeps.m, located here:

% http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4818&objectType=file

% the only change is that this actually changes the bbox numbers

% seriously, the only change is the addition of lines 19,20,31,32

%

% boundingbox has form of:

% %%BoundingBox: x1 y1 x2 y2

% where (x1,y1) is lower-left and (x2,y2) is upper-right

%

% matlab computes x1 too small and x2 too large

文件下载列表
fixepsbbox.zip (1.82KB)  
附件内容(只显示2中的1个)
fixepsbbox.m  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
苏ICP备10108881号