0

Can anyone tell how one can use the text replacement using psfrag in the .eps format of 3 dimensional matlab plot?

\begin{figure}[h]
\centering 
      \psfrag{P_dbm}[cc][cc][0.7]{$P_{dBm}$}
 \psfrag{t_l}[cc][cc][0.7]{$\ti$}
  \psfrag{f_k}[cc][cc][0.7]{$\fk$}
\includegraphics[scale=0.3]{Fig4}
\caption{Measured data}
\label{fig:offroomii28}

\end{figure}

here is the code in latex.the figure is in .eps format. which i saved from matlab as eps which is 3 dimensional plot.the point is, in 2 dimensional plot. psfrag is working absolutely fine and replace the text but in 3 dimensional plot psfrag is not working..like the text remain the same on axis as it was in eps format.text replacement is not done by psfrag

  • 1
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Oct 11 '14 at 11:00
  • 2
    @close-voter(s): This question is at the moment not clear, but it's too early to close it yet. – user31729 Oct 11 '14 at 11:00
  • \begin{figure}[h] \centering \psfrag{P_dbm}[cc][cc][0.7]{$P_{dBm}$} \psfrag{t_l}[cc][cc][0.7]{$\ti$} \psfrag{f_k}[cc][cc][0.7]{$\fk$} \includegraphics[scale=0.3]{Fig4} \caption{Measured ISM data traffic in the office room} \label{fig:offroomii28} \end{figure} – khurram Oct 11 '14 at 11:10
  • 1
    does the literal string (f_k) appear in the EPS file matlab generated, and does you tex document define \fk, if both of those are true your code should probably work (but psfrag makes some assumptions about the postscript that are not always true) – David Carlisle Oct 11 '14 at 11:19
  • 1
    @khurram If you can not find the text (f_k) in the EPS file, then psfrag won't be able to find it either. – David Carlisle Oct 11 '14 at 12:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.