I'm using external EPS from TikZ figures following the suggestions found in "Export eps figures from TikZ". Images are correctly created but when I get the PS of the main document with dvips
I can't see any pictures. It looks like a problem of size of the image or resolution, because the pages where I put pictures appears just all white with the caption of the figure. Also the text of the page is covered. I don't get any error message.
Is there any other option I have to give to dvips
?
My code is:
\hyphenation{Post-Script}
\usepackage{epsfig,import,graphicx,tikz,pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize[prefix=tikzFigures/,shell escape=-enable-write18]
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error
-interaction=batchmode -jobname "\image" "\texsource" &&
dvips -o "\image".ps "\image".dvi}}
\begin{document}
\begin{figure}[thb]
\input{images/fig1.tikz}
\caption{caption}
\label{fig:label}
\end{figure}
\end{document}
and run with
latex --src -interaction=nonstopmode -enable-write18
and then
dvips -P pdf
Here is the code of images/fig1.tikz
:
\begin{tikzpicture}
\begin{axis}[
name=plot1,
scale only axis,
xlabel={$x [m]$},
ylabel={$y [m]$},
title={image},
view={0}{90},
colormap={bw}{gray(0cm)=(0);gray(1cm)=(1)},
colorbar
]
\addplot3[surf]file{images/matrix.dat} ;
\end{axis}
\end{tikzpicture}
I'm using MikTeX 2.9 on a Windows XP system.
`
to mark inline code and names of executables. I tidied up your post a little. I hope you don't mind. – Martin Scharrer♦ Feb 25 '11 at 12:04-halt- on-error
intentional (because there shouldn't be one). Do you get any error message? – Caramdir Feb 25 '11 at 17:37images/fig1.tikz
. – Caramdir Feb 26 '11 at 16:34