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

Tweak bounding box (excess space) from matlab exported encapsulated postscript files (.eps)
3K téléchargements
Mise à jour 11 fév. 2008

Afficher la licence

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

Citation pour cette source

Nathan Tomlin (2024). Fix bounding box in MATLAB exported encapsulated postscript (.eps) files (https://www.mathworks.com/matlabcentral/fileexchange/18681-fix-bounding-box-in-matlab-exported-encapsulated-postscript-eps-files), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP3
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Fractals dans Help Center et MATLAB Answers
Remerciements

Inspiré par : Remove Space in MATLAB Exported Postscript File

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0