Welcome to our community

Be a part of something great, join today!

Mathematica Plot to Latex Document

dwsmith

Well-known member
Feb 1, 2012
1,673
How can I put a Mathematica plot in my Latex document?
 

Ackbach

Indicium Physicus
Staff member
Jan 26, 2012
4,184
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.
 

dwsmith

Well-known member
Feb 1, 2012
1,673
I was actually able to get with just this line

\includegraphics[height=2.5in]{plot}