3.0

3.0 | 2 ratings Rate this file 7 Downloads (last 30 days) File Size: 1.26 KB File ID: #4818

Remove Space in MATLAB Exported Postscript File

by Jorgen Johansson

 

27 Apr 2004 (Updated 30 Apr 2004)

Remove blank space in MATLAB exported postscript file.

| Watch this File

File Information
Description

MATLAB includes extra blank spaces in the bounding box in exported postscript files. By removing extra blank spaces between the bounding box values Lyx a typesetting/wordprocessing software, can correctly read the boundin box values.

usage: fixeps('filename.eps')

Acknowledgements
This submission has inspired the following:
Fix bounding box in MATLAB exported encapsulated postscript (.eps) files
MATLAB release MATLAB 6.5 (R13)
Other requirements tested on windows. minor change needed for linux.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
19 Jan 2008 Tim Lucas

It can really do nothing but read some information about the boundary box and cannot fix the problem at all. Something missing?

11 Feb 2008 Nathan Miller

Oh, I was really confused at first. The white space is not referring to the actual bounding box, it's the spaces between the numbers in the file. This script changes:
bbox: # # # #
to
bbox: # # # #
and does exactly what it is supposed to do.

Tim, if you want a script to actually change the bounding box numbers, see my slight tweak of this file: fixepsbbom.m
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18681&objectType=FILE

11 Feb 2008 Nathan Miller

shoot, the spaces got removed. The script changes:
bbox: #___#___#___#
to
bbox: #_#_#_#

where the underscores and spaces.

Tim, if you want a script to actually change the bounding box numbers, see my slight tweak of this file: fixepsbbom.m
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18681&objectType=FILE

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
graphics import Jorgen Johansson 22 Oct 2008 07:18:34
graphics export Jorgen Johansson 22 Oct 2008 07:18:34
blank Jorgen Johansson 22 Oct 2008 07:18:34
space Jorgen Johansson 22 Oct 2008 07:18:34
postscript Jorgen Johansson 22 Oct 2008 07:18:34
blank space Jorgen Johansson 22 Oct 2008 07:18:34
utilities Jorgen Johansson 22 Oct 2008 07:18:34
import Jorgen Johansson 22 Oct 2008 07:18:34

Contact us at files@mathworks.com