1

This question already has an answer here:

I was able to include a .eps file in my latex document in the following way :

\documentclass[12 pt]{article}

\usepackage[pdftex]{graphicx}

\begin{document}
\begin{figure}
\centering
\includegraphics[width=6cm, height = 6cm]{x.eps}
\caption{}
\label{}
\end{figure}

\end{document}

I would like to be able to add labels for the x and y axis (the image has been imported from a plotting software without the x and y axis labels) in latex. Is there a way to accomplish this in latex ? I tried using tikz but I was not able to get desired results.

marked as duplicate by moewe, Jesse, user13907, Svend Tveskæg, Mico Aug 6 '15 at 13:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    You should take a look at the psfrag and psfragx packages. – Bernard Aug 2 '15 at 15:33
  • Have a look at Image with axis and Drawing on an image with TikZ. – moewe Aug 2 '15 at 15:36
  • @moewe - I did have a look at that post and even implemented it. But I was not able to add x and y axis labels. Specifically, I was not able to get them to appear in the right place or align with the image. – user4557934 Aug 2 '15 at 16:18
  • Well, in that case it would have been much more helpful if you had shown us what you tried so far and how it didn't work for you. – moewe Aug 2 '15 at 16:22
  • Welcome! Did you see this answer to the second question moewe linked to? Since that gives you a grid enabling you to read suitable coordinates off, I'm not sure what the issue with alignment might be? – cfr Aug 2 '15 at 21:38

Browse other questions tagged or ask your own question.