Update: WRI confirmed that this is a known issue with Export
on 2015-05-14.
I am trying to export the outputs of some Plot expressions as PDF files for inclusion in a $\LaTeX$ document.
The two graphs are produced using the following code:
Plot[{
PDF[NormalDistribution[], x],
PDF[NormalDistribution[-4, 1], x],
PDF[NormalDistribution[2, 1], x]
},
{x, -8, 6},
AxesLabel -> {None, None},
Ticks -> {Automatic, None},
Axes -> {True, False}
]
Export["NormalDistMean.pdf", %]
Plot[{
PDF[NormalDistribution[], x],
PDF[NormalDistribution[-4, 1], x],
PDF[NormalDistribution[2, 1], x]
},
{x, -8, 6},
AxesLabel -> {None, None},
Ticks -> {Automatic, None},
Axes -> {True, False},
PlotLegends -> {"N(0,1)", "N(-4,1)", "N(2,1)"}
]
Export["NormalDistMeanAns.pdf", %]
Then I included them in a $\LaTeX$ document (Beamer). The complete documents are shown below for the first PDF (no legends) and second PDF (with legends), respectively:
The first graph shows up in the $\LaTeX$ document with a white background, whereas the second one doesn't, i.e. the plot was transparent, as was the original intended outcome for both.
Here is the question: How do I make the first PDF like the second one?
Thanks!
The $\LaTeX$ (beamer) code is included below for those who are interested.
\documentclass{beamer}
\usepackage{color,graphicx}
\mode<presentation>{
\usetheme{Darmstadt} %Best
\setbeamercovered{transparent}
}
\beamertemplatenavigationsymbolsempty % navigation bars
\begin{document}
\begin{frame}{Mean}
\centering
\only<1>{
\begin{block}{Can you find the $\mu$ for each of the $N(\mu,1^2)$ density curves?}
\includegraphics[height=0.6\textheight]{NormalDistMean.pdf}
\end{block}
}
\only<2>{
\begin{block}{Can you find the $\mu$ for each of the $N(\mu,1^2)$ density curves?}
\includegraphics[height=0.6\textheight]{NormalDistMeanAns.pdf}
\end{block}
}
\end{frame}
\end{document}
Background -> None
as an option to your plots? This seems to work on MMA v.10.1.0 on Win7-64bit $\endgroup$