# Using 3dplot package in Beamer

I'm trying to make a 3d plot by adapting the one from the beamer gallery. I'm using LyX 2.0. I keep getting an error that LyX can't compile the file because it can't find

\begin{document}


Obviously, you don't put this in the LaTeX preamble in Lyx. My document compiled fine before downloading the .sty file and inserting the following line into the preamble.

\usepackage{3dplot}


This is my full preamble:

%\usetheme{Warsaw}
\usetheme{CambridgeUS}
% or ...

\usecolortheme{beaver}
\usefonttheme{serif}
\setbeamertemplate{footline}[text line]{} % makes the footer EMPTY
\usepackage{tikz}
\usetikzlibrary{arrows}
\definecolor{burntorange}{cmyk}{0,0.52,1,0}

\AtBeginSection[]
{
\begin{frame}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\usepackage{3dplot} %requires 3dplot.sty to be in same directory, or in your LaTeX
installation


How can I resolve this?

-

Using

\usepackage{tikz-3dplot}


\usepackage{3dplot}