I have an issue when trying to externalize a tikzpicture. The working example consists of two files. The main file:
Code: Select all
\documentclass[oneside, 10pt]{scrreprt}
\usepackage{tkz-euclide,tikz-3dplot}
\usetikzlibrary{external}
\tikzexternalize
\begin{document}
\input{ellipse.tikz}
\end{document}[/latex]
and the ellipse.tikz file:
[latex]\newcommand{\asa}{2}
\newcommand{\bsa}{0.5}
\newcommand{\csa}{0.5}
% view angle
\tdplotsetmaincoords{85}{25}
%
\begin{tikzpicture}[scale=2,tdplot_main_coords,line join=bevel,fill opacity=.2]
\pgfsetlinewidth{.1pt}
\tdplotsphericalsurfaceplot[fill opacity=0.2]{72}{36}%
{1/sqrt((sin(\tdplottheta))^2*(cos(\tdplotphi))^2/\asa+
(sin(\tdplottheta))^2*(sin(\tdplotphi))^2/\bsa + (cos(\tdplottheta))^2/\csa)} % function defining radius
{black} % line color
{green} % fill
{\draw[color=black,thick,->] (0,0,0) -- (2,0,0) node[anchor=north east]{$\varphi_1$};}% x-axis
{\draw[color=black,thick,->] (0,0,0) -- (0,1.5,0) node[anchor=north west]{$\varphi_2$};}% y-axis
{\draw[color=black,thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$\varphi_3$};}% z-axis
\end{tikzpicture}
Does anybody know the reason for this, and/or a possible fix?
help is greatly appreciated!