Re: The (eternal?) EPS-problem
John Coppens wrote: Thanks for the reply. It doesn't work though. Did you try to generate a PDF(latex) from the graph? The graph is always at the bottom (because of the white space above). I even tried to remove the line: %%DocumentMedia: Regular 595 841 0 () () John Here are some more tests: 1) I modified the Bounding Box as above in the PS file and included it directly. Then even clipping doesn't work on the LyX screen. PDF has entire page. Confirmed. My results are: - display in lyx is ok if the bounding box is 0 0 454 454 and the %%DocumentMedia: line removed, regardless of the clip setting. - ps output is likewise - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is used, I get always the full page image. I tested also with a different file and got correct results. Your file has two problems: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice should be removed. I don't know why they are there and when they are needed, but if they are removed, epstopdf works correctly. Georg
Re: The (eternal?) EPS-problem
On Thu, 17 Jun 2004 09:52:52 +0200 Georg Baum [EMAIL PROTECTED] wrote: Confirmed. My results are: - display in lyx is ok if the bounding box is 0 0 454 454 and the %%DocumentMedia: line removed, regardless of the clip setting. - ps output is likewise - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is used, I get always the full page image. I tested also with a different file and got correct results. Your file has two problems: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. That was because the file I posted on my site was the original PS file - not EPS. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice Probably same remark as above. I didn't remove them from the EPS files. - Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I installed it (as pdflatex does not treat the EPSs correctly). Several other items weren't installed either. I'll do a few tests in the next days, and post a writeup of the results. Thanks, Georg! John BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual?
Re: The (eternal?) EPS-problem
Am Donnerstag, 17. Juni 2004 20:13 schrieb John Coppens: On Thu, 17 Jun 2004 09:52:52 +0200 Georg Baum [EMAIL PROTECTED] wrote: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. That was because the file I posted on my site was the original PS file - not EPS. Your file is a valid EPS file (Apart from the setpagedevice), but is not declared as such. The difference between ps and eps are (maybe I have forgotten something): - EPS needs a bounding box, PS not - EPS files must obey a certain structure regarding the DSC comments - EPS files sometimes contain a preview (then they are called sometims EPSI) Unfortunately there are often subtle differences between different programs. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice Probably same remark as above. I didn't remove them from the EPS files. But if you did, pdflatex would work (at least it did for me). - Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I installed it (as pdflatex does not treat the EPSs correctly). Several other items weren't installed either. I'll do a few tests in the next days, and post a writeup of the results. maybe to the wiki? BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual? I don't know of any, but you are right, the documentation is improvable in this respect. Georg
Re: The (eternal?) EPS-problem
John Coppens wrote: BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual? I don't think that's true at all. However, you're right that the converters stuff doesn't have any documentation. Maybe you're the man to do it? -- Angus
Re: The (eternal?) EPS-problem
John Coppens wrote: Thanks for the reply. It doesn't work though. Did you try to generate a PDF(latex) from the graph? The graph is always at the bottom (because of the white space above). I even tried to remove the line: %%DocumentMedia: Regular 595 841 0 () () John Here are some more tests: 1) I modified the Bounding Box as above in the PS file and included it directly. Then even clipping doesn't work on the LyX screen. PDF has entire page. Confirmed. My results are: - display in lyx is ok if the bounding box is 0 0 454 454 and the %%DocumentMedia: line removed, regardless of the clip setting. - ps output is likewise - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is used, I get always the full page image. I tested also with a different file and got correct results. Your file has two problems: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice should be removed. I don't know why they are there and when they are needed, but if they are removed, epstopdf works correctly. Georg
Re: The (eternal?) EPS-problem
On Thu, 17 Jun 2004 09:52:52 +0200 Georg Baum [EMAIL PROTECTED] wrote: Confirmed. My results are: - display in lyx is ok if the bounding box is 0 0 454 454 and the %%DocumentMedia: line removed, regardless of the clip setting. - ps output is likewise - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is used, I get always the full page image. I tested also with a different file and got correct results. Your file has two problems: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. That was because the file I posted on my site was the original PS file - not EPS. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice Probably same remark as above. I didn't remove them from the EPS files. - Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I installed it (as pdflatex does not treat the EPSs correctly). Several other items weren't installed either. I'll do a few tests in the next days, and post a writeup of the results. Thanks, Georg! John BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual?
Re: The (eternal?) EPS-problem
Am Donnerstag, 17. Juni 2004 20:13 schrieb John Coppens: On Thu, 17 Jun 2004 09:52:52 +0200 Georg Baum [EMAIL PROTECTED] wrote: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. That was because the file I posted on my site was the original PS file - not EPS. Your file is a valid EPS file (Apart from the setpagedevice), but is not declared as such. The difference between ps and eps are (maybe I have forgotten something): - EPS needs a bounding box, PS not - EPS files must obey a certain structure regarding the DSC comments - EPS files sometimes contain a preview (then they are called sometims EPSI) Unfortunately there are often subtle differences between different programs. 2. The commands /PageSize [595 841] /ImagingBBox null setpagedevice Probably same remark as above. I didn't remove them from the EPS files. But if you did, pdflatex would work (at least it did for me). - Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I installed it (as pdflatex does not treat the EPSs correctly). Several other items weren't installed either. I'll do a few tests in the next days, and post a writeup of the results. maybe to the wiki? BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual? I don't know of any, but you are right, the documentation is improvable in this respect. Georg
Re: The (eternal?) EPS-problem
John Coppens wrote: BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual? I don't think that's true at all. However, you're right that the converters stuff doesn't have any documentation. Maybe you're the man to do it? -- Angus
Re: The (eternal?) EPS-problem
John Coppens wrote: > Thanks for the reply. It doesn't work though. Did you try to generate a > PDF(latex) from the graph? The graph is always at the bottom (because of > the white space above). I even tried to remove the line: > > %%DocumentMedia: Regular 595 841 0 () () > > John > > Here are some more tests: > > 1) I modified the Bounding Box as above in the PS file and included it > directly. Then even clipping doesn't work on the LyX screen. PDF has > entire page. Confirmed. My results are: - display in lyx is ok if the bounding box is 0 0 454 454 and the %%DocumentMedia: line removed, regardless of the clip setting. - ps output is likewise - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is used, I get always the full page image. I tested also with a different file and got correct results. Your file has two problems: 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, otherwise lyx will not recognize it as eps but ps and therefore use ps2pdf and not eps2pdf to convert it to pdf. 2. The commands << /PageSize [595 841] /ImagingBBox null >> setpagedevice should be removed. I don't know why they are there and when they are needed, but if they are removed, epstopdf works correctly. Georg
Re: The (eternal?) EPS-problem
On Thu, 17 Jun 2004 09:52:52 +0200 Georg Baum <[EMAIL PROTECTED]> wrote: > Confirmed. My results are: > > - display in lyx is ok if the bounding box is 0 0 454 454 and the > %%DocumentMedia: line removed, regardless of the clip setting. > - ps output is likewise > - pdf output is likewise if dvipdfm or ps2pdf is used. If pdflatex is > used, > I get always the full page image. > > I tested also with a different file and got correct results. Your file > has two problems: > > 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, > otherwise lyx will not recognize it as eps but ps and therefore use > ps2pdf and not eps2pdf to convert it to pdf. That was because the file I posted on my site was the original PS file - not EPS. > 2. The commands > > << > /PageSize [595 841] > /ImagingBBox null > >> setpagedevice Probably same remark as above. I didn't remove them from the EPS files. - Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I installed it (as pdflatex does not treat the EPSs correctly). Several other items weren't installed either. I'll do a few tests in the next days, and post a writeup of the results. Thanks, Georg! John BTW: Throughout this experience I was confused (and amazed) by the (lack of-) beginner's documentation for LyX. Most docs are based on previous knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters and viewers is not entirely intuitive... Is there some effort on the way for a more complete installation/configuration manual?
Re: The (eternal?) EPS-problem
Am Donnerstag, 17. Juni 2004 20:13 schrieb John Coppens: > On Thu, 17 Jun 2004 09:52:52 +0200 > Georg Baum <[EMAIL PROTECTED]> wrote: > > 1. It must start with %!PS-Adobe-3.0 EPSF-3.0, not %!PS-Adobe-3.0, > > otherwise lyx will not recognize it as eps but ps and therefore use > > ps2pdf and not eps2pdf to convert it to pdf. > > That was because the file I posted on my site was the original PS file - > not EPS. Your file is a valid EPS file (Apart from the setpagedevice), but is not declared as such. The difference between ps and eps are (maybe I have forgotten something): - EPS needs a bounding box, PS not - EPS files must obey a certain structure regarding the DSC comments - EPS files sometimes contain a preview (then they are called sometims EPSI) Unfortunately there are often subtle differences between different programs. > > 2. The commands > > > > << > > /PageSize [595 841] > > /ImagingBBox null > > >> setpagedevice > > Probably same remark as above. I didn't remove them from the EPS files. But if you did, pdflatex would work (at least it did for me). > - > Anyway, I've finally been able to get it done! I didn't have dvipdfm, so I > installed it (as pdflatex does not treat the EPSs correctly). Several > other items weren't installed either. I'll do a few tests in the next > days, and post a writeup of the results. maybe to the wiki? > BTW: Throughout this experience I was confused (and amazed) by the (lack > of-) beginner's documentation for LyX. Most docs are based on previous > knowledge of TeX/LaTeX or other stuff. Configuration of the LyX converters > and viewers is not entirely intuitive... Is there some effort on the way > for a more complete installation/configuration manual? I don't know of any, but you are right, the documentation is improvable in this respect. Georg
Re: The (eternal?) EPS-problem
John Coppens wrote: > BTW: Throughout this experience I was confused (and amazed) by the (lack > of-) beginner's documentation for LyX. Most docs are based on previous > knowledge of TeX/LaTeX or other stuff. Configuration of the LyX > converters and viewers is not entirely intuitive... Is there some effort > on the way for a more complete installation/configuration manual? I don't think that's true at all. However, you're right that the converters stuff doesn't have any documentation. Maybe you're the man to do it? -- Angus
The (eternal?) EPS-problem
Hi all. I've spent a good while experimenting with EPS figures. I wrote a program using GnomePrint, which produces PS files. These seem to include a few commands which do not allow using the bounding box. I've noticed many threads on the EPS theme, but have not been able to find a solution (including none of the various preamble tricks worked). I've installed gs 8.01, as the previous version segfaulted with ps2epsi. Tests done include: - use ps2eps (bbox is correctly detected) - use ps2epsi (idem) - use convert file.ps EPS:file.eps (Someone said convert would rasterize. Doesn't seem so) - editing manually the ps or eps files - viewing with gv/saving with bbox - adding -dEPSCrop to the converter - adding -dUseBoundingBox (?) to the converter - enabling the 'clip to' in LyX - changed gs versions In many combinations I found that gv showed the image correctly bounded to the image, and in some cases even LyX showed the image clipped correctly. In all cases though, the resulting PDF included all the white space above the image, pushing image down, half out of the page, ignoring the bounding box. Help! John PS: if someone wants to try, I've put a gzipped PS file: http://www.jcoppens.com/misc/tests/ej4-1.ps.gz
Re: The (eternal?) EPS-problem
John Coppens wrote: Hi all. I've spent a good while experimenting with EPS figures. I wrote a program using GnomePrint, which produces PS files. These seem to include a few commands which do not allow using the bounding box. I've noticed many threads on the EPS theme, but have not been able to find a solution (including none of the various preamble tricks worked). I've installed gs 8.01, as the previous version segfaulted with ps2epsi. Tests done include: {...} In many combinations I found that gv showed the image correctly bounded to the image, and in some cases even LyX showed the image clipped correctly. You know that gv shows the whole paper sheet if %%DocumentMedia: is defined? You have to select BBox if you want to see only the contents of the bounding box. lyx seems to follow this rule, too (this is IMHO a bug, since the printed output obeys the bounding box). If you don't want that, remove %%DocumentMedia:. (I would not care too much, since the output is ok in both cases) In all cases though, the resulting PDF included all the white space above the image, pushing image down, half out of the page, ignoring the bounding box. It does not ignore the bounding box. Your bounding box does include all the whitespace. If you change %%BoundingBox: 0 0 596 842 to %%BoundingBox: 0 0 454 454 everything is fine. I got that value by using pstops, for some reason my ps2epsi cannot convert the file. Georg
Re: The (eternal?) EPS-problem
On Wed, 16 Jun 2004 19:31:34 +0200 Georg Baum [EMAIL PROTECTED] wrote: It does not ignore the bounding box. Your bounding box does include all the whitespace. If you change %%BoundingBox: 0 0 596 842 to %%BoundingBox: 0 0 454 454 Hello Georg Thanks for the reply. It doesn't work though. Did you try to generate a PDF(latex) from the graph? The graph is always at the bottom (because of the white space above). I even tried to remove the line: %%DocumentMedia: Regular 595 841 0 () () John Here are some more tests: 1) I modified the Bounding Box as above in the PS file and included it directly. Then even clipping doesn't work on the LyX screen. PDF has entire page. 2) I converted to EPS with ps2eps: ej4# ps2eps -f ej4-1.ps Input files: ej4-1.ps Processing: ej4-1.ps Rendering with existing %%BoundingBox: 0 0 454 454 Calculating Bounding Box...ready. %%BoundingBox: 0 1 454 454 Creating output file ej4-1.eps...ready. Inside the EPS: %%BoundingBox: 0 1 454 454 %%HiResBoundingBox: 0.00 1.00 453.50 454.00 No luck - LyX shows entire page, doesn't clip, and PDF contains entire page. 3) convert ej4-1.ps EPS:ej4-1.eps LyX shows the image clipped! PDF _still_ shows the entire page. Inside the EPS: %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 454 454 %%HiResBoundingBox: 0.00 0.00 453.679297 453.544141 4) ps2epsi ej4-1.ps %%BoundingBox: 0 0 454 454 Same as 3): Clipped in LyX, full page in PDF.
The (eternal?) EPS-problem
Hi all. I've spent a good while experimenting with EPS figures. I wrote a program using GnomePrint, which produces PS files. These seem to include a few commands which do not allow using the bounding box. I've noticed many threads on the EPS theme, but have not been able to find a solution (including none of the various preamble tricks worked). I've installed gs 8.01, as the previous version segfaulted with ps2epsi. Tests done include: - use ps2eps (bbox is correctly detected) - use ps2epsi (idem) - use convert file.ps EPS:file.eps (Someone said convert would rasterize. Doesn't seem so) - editing manually the ps or eps files - viewing with gv/saving with bbox - adding -dEPSCrop to the converter - adding -dUseBoundingBox (?) to the converter - enabling the 'clip to' in LyX - changed gs versions In many combinations I found that gv showed the image correctly bounded to the image, and in some cases even LyX showed the image clipped correctly. In all cases though, the resulting PDF included all the white space above the image, pushing image down, half out of the page, ignoring the bounding box. Help! John PS: if someone wants to try, I've put a gzipped PS file: http://www.jcoppens.com/misc/tests/ej4-1.ps.gz
Re: The (eternal?) EPS-problem
John Coppens wrote: Hi all. I've spent a good while experimenting with EPS figures. I wrote a program using GnomePrint, which produces PS files. These seem to include a few commands which do not allow using the bounding box. I've noticed many threads on the EPS theme, but have not been able to find a solution (including none of the various preamble tricks worked). I've installed gs 8.01, as the previous version segfaulted with ps2epsi. Tests done include: {...} In many combinations I found that gv showed the image correctly bounded to the image, and in some cases even LyX showed the image clipped correctly. You know that gv shows the whole paper sheet if %%DocumentMedia: is defined? You have to select BBox if you want to see only the contents of the bounding box. lyx seems to follow this rule, too (this is IMHO a bug, since the printed output obeys the bounding box). If you don't want that, remove %%DocumentMedia:. (I would not care too much, since the output is ok in both cases) In all cases though, the resulting PDF included all the white space above the image, pushing image down, half out of the page, ignoring the bounding box. It does not ignore the bounding box. Your bounding box does include all the whitespace. If you change %%BoundingBox: 0 0 596 842 to %%BoundingBox: 0 0 454 454 everything is fine. I got that value by using pstops, for some reason my ps2epsi cannot convert the file. Georg
Re: The (eternal?) EPS-problem
On Wed, 16 Jun 2004 19:31:34 +0200 Georg Baum [EMAIL PROTECTED] wrote: It does not ignore the bounding box. Your bounding box does include all the whitespace. If you change %%BoundingBox: 0 0 596 842 to %%BoundingBox: 0 0 454 454 Hello Georg Thanks for the reply. It doesn't work though. Did you try to generate a PDF(latex) from the graph? The graph is always at the bottom (because of the white space above). I even tried to remove the line: %%DocumentMedia: Regular 595 841 0 () () John Here are some more tests: 1) I modified the Bounding Box as above in the PS file and included it directly. Then even clipping doesn't work on the LyX screen. PDF has entire page. 2) I converted to EPS with ps2eps: ej4# ps2eps -f ej4-1.ps Input files: ej4-1.ps Processing: ej4-1.ps Rendering with existing %%BoundingBox: 0 0 454 454 Calculating Bounding Box...ready. %%BoundingBox: 0 1 454 454 Creating output file ej4-1.eps...ready. Inside the EPS: %%BoundingBox: 0 1 454 454 %%HiResBoundingBox: 0.00 1.00 453.50 454.00 No luck - LyX shows entire page, doesn't clip, and PDF contains entire page. 3) convert ej4-1.ps EPS:ej4-1.eps LyX shows the image clipped! PDF _still_ shows the entire page. Inside the EPS: %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 454 454 %%HiResBoundingBox: 0.00 0.00 453.679297 453.544141 4) ps2epsi ej4-1.ps %%BoundingBox: 0 0 454 454 Same as 3): Clipped in LyX, full page in PDF.
The (eternal?) EPS-problem
Hi all. I've spent a good while experimenting with EPS figures. I wrote a program using GnomePrint, which produces PS files. These seem to include a few commands which do not allow using the bounding box. I've noticed many threads on the EPS theme, but have not been able to find a solution (including none of the various preamble tricks worked). I've installed gs 8.01, as the previous version segfaulted with ps2epsi. Tests done include: - use ps2eps (bbox is correctly detected) - use ps2epsi (idem) - use convert file.ps EPS:file.eps (Someone said convert would rasterize. Doesn't seem so) - editing manually the ps or eps files - viewing with gv/saving with bbox - adding -dEPSCrop to the converter - adding -dUseBoundingBox (?) to the converter - enabling the 'clip to' in LyX - changed gs versions In many combinations I found that gv showed the image correctly bounded to the image, and in some cases even LyX showed the image clipped correctly. In all cases though, the resulting PDF included all the white space above the image, pushing image down, half out of the page, ignoring the bounding box. Help! John PS: if someone wants to try, I've put a gzipped PS file: http://www.jcoppens.com/misc/tests/ej4-1.ps.gz
Re: The (eternal?) EPS-problem
John Coppens wrote: > Hi all. > > I've spent a good while experimenting with EPS figures. I wrote a program > using GnomePrint, which produces PS files. These seem to include a few > commands which do not allow using the bounding box. I've noticed many > threads on the EPS theme, but have not been able to find a solution > (including none of the various preamble tricks worked). I've installed gs > 8.01, as the previous version segfaulted with ps2epsi. Tests done > include: {...} > In many combinations I found that gv showed the image correctly bounded to > the image, and in some cases even LyX showed the image clipped correctly. You know that gv shows the whole paper sheet if %%DocumentMedia: is defined? You have to select BBox if you want to see only the contents of the bounding box. lyx seems to follow this rule, too (this is IMHO a bug, since the printed output obeys the bounding box). If you don't want that, remove %%DocumentMedia:. (I would not care too much, since the output is ok in both cases) > In all cases though, the resulting PDF included all the white space above > the image, pushing image down, half out of the page, ignoring the bounding > box. It does not ignore the bounding box. Your bounding box does include all the whitespace. If you change %%BoundingBox: 0 0 596 842 to %%BoundingBox: 0 0 454 454 everything is fine. I got that value by using pstops, for some reason my ps2epsi cannot convert the file. Georg
Re: The (eternal?) EPS-problem
On Wed, 16 Jun 2004 19:31:34 +0200 Georg Baum <[EMAIL PROTECTED]> wrote: > > It does not ignore the bounding box. Your bounding box does include all > the whitespace. If you change > > %%BoundingBox: 0 0 596 842 > to > %%BoundingBox: 0 0 454 454 Hello Georg Thanks for the reply. It doesn't work though. Did you try to generate a PDF(latex) from the graph? The graph is always at the bottom (because of the white space above). I even tried to remove the line: %%DocumentMedia: Regular 595 841 0 () () John Here are some more tests: 1) I modified the Bounding Box as above in the PS file and included it directly. Then even clipping doesn't work on the LyX screen. PDF has entire page. 2) I converted to EPS with ps2eps: ej4# ps2eps -f ej4-1.ps Input files: ej4-1.ps Processing: ej4-1.ps Rendering with existing %%BoundingBox: 0 0 454 454 Calculating Bounding Box...ready. %%BoundingBox: 0 1 454 454 Creating output file ej4-1.eps...ready. Inside the EPS: %%BoundingBox: 0 1 454 454 %%HiResBoundingBox: 0.00 1.00 453.50 454.00 No luck - LyX shows entire page, doesn't clip, and PDF contains entire page. 3) convert ej4-1.ps EPS:ej4-1.eps LyX shows the image clipped! PDF _still_ shows the entire page. Inside the EPS: %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 454 454 %%HiResBoundingBox: 0.00 0.00 453.679297 453.544141 4) ps2epsi ej4-1.ps %%BoundingBox: 0 0 454 454 Same as 3): Clipped in LyX, full page in PDF.