Graphics, Figures & Tableseps figure displayed as blank in document

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
asims
Posts: 10
Joined: Tue May 10, 2011 5:24 pm

eps figure displayed as blank in document

Post by asims »

Hi

I have a figure to include in my thesis (bplot.eps) which was created by printing to ps from Minitab. I then opened the image in gsview32 v4.9 successfully and converted to an EPS by defining the desired bounding box.

I then tried to include the image in my latex document using the following code:

Code: Select all

\begin{figure}%
\includegraphics[width=0.9\textwidth]{04_chapter/images/bplot.eps}%
\caption{caption}%
\label{fig:CPAP_FEA_rgd_040}%
\end{figure}
The docuement processed without any errors, but displayed blank space instead of my figure in the document. The caption was in the correct location. I tried compiling it in draft mode and the correct box outline and filename were printed.

I have included many images in this document without a problem before this.

Thank you for any comments or suggestions to resolve this issue.

Regards

Andrew Sims
UNSW

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Re: eps figure displayed as blank in document

Post by Stefan Kottwitz »

Hi Andrew,

welcome to the board!

There are tools which are able to fix eps files or to fix their bounding boxes, such as ps2eps.

Perhaps consider converting eps files to pdf (using epstopdf tool or the LaTeX package with the same name) and use pdfLaTeX. This engine has its advantages also if not using its jpg, png, pdf support.

Stefan
LaTeX.org admin
asims
Posts: 10
Joined: Tue May 10, 2011 5:24 pm

eps figure displayed as blank in document

Post by asims »

Stefan

Thanks for the welcome and reply.

I might be a bit far down the line to simply change to using pdflatex. I am using a number of matlab plots along the way that I have used the psfrag utility to match typefaces etc where possible. I understand that the psfrag functionality is not compatible with pdflatex.

Will have to think.

As for this problem - I think that I might be getting out of the bounds of the scope of the forum here, as I have not been able to get ps2eps to work. It simply hangs as follows:

Code: Select all

C:\users\asims\PhD\tests\cpap_mri>ps2eps boxplot.ps
Input files: -
Processing: -
Calculating Bounding Box...Terminating on signal SIGINT(2)
This had to be terminated with CTRL-C (I am on Windows XP).

I have tried several of the debug options, but no luck. There might be something strange in the postscript files, but am not sure on that.

Thanks

Andrew Sims
afa0011
Posts: 8
Joined: Mon Sep 24, 2018 6:18 pm

eps figure displayed as blank in document

Post by afa0011 »

I have the same problem now. were you able to come up with a solution?
Post Reply