Mathematica Plot to Latex Document

  • Context: Mathematica 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Latex Mathematica Plot
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 5K views
Dustinsfl
Messages
2,217
Reaction score
5
How can I put a Mathematica plot in my Latex document?
 
Physics news on Phys.org
Best way I know how:

1. Execute the

Code:
\usepackage{graphicx}

command in your header.

2. Convert your Mathematica plot to eps. You can do that by some variation of this procedure:

a. Select the plot.
b. Select Edit -> Save Selection As -> EPS...
c. Save file as foo.eps (or whatever filename you want - should have .eps extension for Encapsulated PostScript file format).

3. For each figure, use this code:

Code:
\begin{figure}[H]
\begin{center}
\includegraphics{foo.eps}
\end{center}
\caption{Whatever text you want to accompany the figure goes here.}
\label{Fi:Whatever_you_want_to_refer_to_this_figure_as_later_in_your_document}
\end{figure}

See how that works.
 
I was actually able to get with just this line

\includegraphics[height=2.5in]{plot}