# how to add labels to x and y axis in figure environment [duplicate]

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, MicoAug 6 '15 at 13:14

• You should take a look at the psfrag and psfragx packages. – Bernard Aug 2 '15 at 15:33