I'm trying to plot an image file in a pdfplots axis. This is a minimal example (the files fig2a.eps and fig2a.png both contain the image that should be plotted):
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot graphics[xmin=-0.15, xmax=0.15, ymin=0.0, ymax=0.2] {fig2a};
\end{axis}
\end{tikzpicture}
\end{document}
When compiling with pdflatex, I get exactly what I want. With latex (producing a dvi file), the tick labels are all on top of each other inside the image, so something goes wrong with the positioning.
I suppose version information is useful in this case -- from the output to the screen I have this when running both latex and pdflatex:
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
What am I doing wrong?

convert fig2a.png fig2a.eps). – josteinb Jan 28 at 19:37.pdfor.ps? If so, how did you convert the.dvito.pdf(or.ps)? TikZ needs to know this so-called "driver" in order to produce a proper output dvi. Without the correct driver, the output will be screwed up. – Christian Feuersänger Jan 29 at 19:13