malaviya@fermi.engr.umbc.edu (Prasanna Malaviya) (04/01/91)
Hi, I have a problem and it is driving me crazy! Maybe, some of you guys can help .... I am generating some "meta" files using a utility called MATLAB (by MathWorks Inc., version 3.5d) which are basically some complicated plots. Then I am using GPP (Graphics Post-Processor version 1.5, MathWorks Inc.), to convert these files to ps or eps format and then print them. I work on HP 9000 machines using X11. So far so good ... Now what I want is to be able to include a whole lot of legends and explanations (including placing text in places that MATLAB does not allow, well it allows but it is a *real* pain ..) on the plots that I have. I figured that the easiest way of doing this would be to use a PS/EPS editor to open up these files and then put in whatever I wanted where ever I wanted. The only thing I know of, which can do something like this is idraw. But now the bummer ... idraw is not able to read in these GPP generated EPS files! Now I am a total novice as regards PS/EPS programming, and so am not able to understand why. Is there some way that these files can be made readable by idraw? Or into any other editor for PS or for EPS? I include under, some portions of one of the files as generated by gpp, first EPS format and then PS format for you to look at (I am not even sure as to what I should include here, but anyway ...). What should be changed (possibly in the headers?) to make idraw (or other PS/EPS editors) read it? If you suggest the use of an editor other than idraw, can you please also tell how/where to get it from? Many many thanks. **----begin EPS file----** %!PS-Adobe-2.0 EPSF-1.2 %%Creator: malaviya %%Title: MATLAB graph %%CreationDate: 04/01/91 04:05:46 %%Pages: 001 %%BoundingBox: 080 407 532 756 %%DocumentFonts: Times-Roman %%DocumentNeededFonts: Times-Roman %%EndComments % MathWorks dictionary /mathworks 50 dict begin **----lots of stuff deleted---** currentdict end def %dictionary %%EndProlog %%BeginSetup mathworks begin % fonts for text, standard numbers and exponents %%IncludeFont: Times-Roman /Times-Roman selfont /lfont 20 savefont /sfont 14 savefont %line width, line cap, and joint spec .5 setlinewidth 1 setlinecap 1 setlinejoin end %%EndSetup %%Page: 1 1 %%BeginPageSetup %%PageBoundingBox: 080 407 532 756 mathworks begin bpage %%EndPageSetup %%BeginObject: graph 1 bplot 80 407 532 756 bbox portrait csm **----lots of stuff deleted---** eplot %%EndObject graph 1 epage end %%Trailer **----end of EPS file----** And now the PS version of the same graph ... **----begin PS file----** %!PS-Adobe-2.0 %%Creator: malaviya %%Title: MATLAB graph %%CreationDate: 04/01/91 04:17:21 %%Pages: 001 %%BoundingBox: 080 407 532 756 %%DocumentFonts: Times-Roman %%DocumentNeededFonts: Times-Roman %%EndComments % MathWorks dictionary /mathworks 50 dict begin **----lots of stuff deleted ---** currentdict end def %dictionary %%EndProlog %%BeginSetup mathworks begin % fonts for text, standard numbers and exponents %%IncludeFont: Times-Roman /Times-Roman selfont /lfont 20 savefont /sfont 14 savefont %line width, line cap, and joint spec .5 setlinewidth 1 setlinecap 1 setlinejoin end %%EndSetup %%Page: 1 1 %%BeginPageSetup %%PageBoundingBox: 080 407 532 756 mathworks begin bpage %%EndPageSetup %%BeginObject: graph 1 bplot 80 407 532 756 bbox portrait csm **----lots of stuff deleted---*** eplot %%EndObject graph 1 epage end showpage %%Trailer **----end of PS file---*** The two files are exacly the same, except for the very first line and the line before "%%Trailer" (showpage command). Thanks for reading me out. -- Pras. malaviya@plato.engr.umbc.edu malaviya@umbc3.umbc.edu