Thread View: comp.soft-sys.matlab
4 messages
4 total messages
Started by Julien Nicolas
Sat, 23 Jan 1993 05:16
Purpose of %%BeginPreview ... %%EndPreview in eps files
Author: Julien Nicolas
Date: Sat, 23 Jan 1993 05:16
Date: Sat, 23 Jan 1993 05:16
14 lines
959 bytes
959 bytes
Eps files generated with 'print -deps' are huge. Unecessarily so it seems. They contain, at least under 4.0, a section with no information: %%BeginPreview: 560 420 1 420 %ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ... %%EndPreview Can this 'feature' be disabled, turned off, short of having to remove it by hand? Julien Nicolas.
Re: Purpose of %%BeginPreview ... %%EndPreview in eps files
Author: Julien Nicolas
Date: Sat, 23 Jan 1993 23:57
Date: Sat, 23 Jan 1993 23:57
15 lines
958 bytes
958 bytes
Solution: Comment out the following section in print.m % EPS file gets Adobe standard EPSI bitmap preview % Bring figure to top of window stacking order for screen capture %if (isEps) % num_opt_args = num_opt_args + 1; % eval(['opt_arg', num2str(num_opt_args), ' = ''-preview'';']); % figure(gcf) %end File sizes are now much more reasonable... Julien
Re: Purpose of %%BeginPreview ... %%EndPreview in eps files
Author: Douglas Gray Stephens
Date: Mon, 25 Jan 1993 09:45
Date: Mon, 25 Jan 1993 09:45
35 lines
2112 bytes
2112 bytes
In article <JNICOLAS.93Jan23001608@image.mit.edu> jnicolas@image.mit.edu (Julien Nicolas) writes:
Eps files generated with 'print -deps' are huge. Unecessarily so it
seems. They contain, at least under 4.0, a section with no information:
%%BeginPreview: 560 420 1 420
%ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
...
%%EndPreview
MathWorks has always failed to generate good Encapsulated PostScript.
The PostScript Language Reference manual states that only required header
comments are:-
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox llx lly urx ury
The preview image is required for Encapsulated PostScript interchange
format (EPSI) files, but matlab's print refers to EPSF files, which do
not require the image.
I believe that MathWorks had several discussions about this, and I'm
glad to say that version 4.0a corrects this feature, so the print
command now has an optional "-preview" argument.
I wish that MathWorks get its house in order and generate the correct
BoundingBox for its EPS files.
--
----------------------------------------------------------------------------
Dr. Douglas GRAY STEPHENS e-mail : gray@scr.slb.com
Schlumberger Cambridge Research Tel/fax: 0223-325303 / 0223-311830
P.O.Box 153, Cambridge CB3 0HG, England (International prefix for UK: 44)
============================================================================
Re: Purpose of %%BeginPreview ... %%EndPreview in eps files
Author: Anders Holtsberg
Date: Mon, 25 Jan 1993 13:00
Date: Mon, 25 Jan 1993 13:00
15 lines
1063 bytes
1063 bytes
D. G. Stephens: >I wish that MathWorks get its house in order and generate the correct >BoundingBox for its EPS files. I guess you mean the slightly annoying bug of generating a full plot screen bounding box even though one has only used part of the plotting area, e.g. subplot(211). Also, I'm sure the lines produced by 4.0a will always appear at the same places in the postscript plot as they did on the screen :-). Using hold and plotting a line whose endpoints are outside the plot performs correctly on screen but sometimes gives randomized postscript output. Anders Holtsberg
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads