# Trig Function not compiling externalized pgfplots

I am trying to graph a rational trig function using tikz/pgfplots and got the error that it ran out of memory. I then changed my pdflatex line in TexMaker to "pdflatex -shell-escape name.tex" and tried to compile, and while I haven't run into a memory issue yet, it is still compiling after about 15 minutes. Is there something I can do about this or do I just need to let it run overnight?

\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{amssymb}
\usepackage{verbatim,amsfonts, colonequals, amsthm, amsmath, mathrsfs, amscd, pgfplots,multicol,geometry}
\usepackage{gensymb,tikz}
\usetikzlibrary{arrows}
\usepgfplotslibrary{external}
\tikzexternalize

\geometry{textwidth=6.3in,textheight=9in}

\parindent=0in
\pagestyle{empty}

\begin{document}

\begin{center}
\begin{tikzpicture}[scale=.75]
\begin{axis}
\end{axis}
\end{tikzpicture}
\end{center}

\end{document}


EDIT: I didn't end up using the deg option as I actually wanted radians, but the issue was with the -shell-escape externalization. If anyone runs into this issue, the solution for my problem was reaming the file so that it has no spaces.

Which of the many style files you include make your minimal working example minimal. Apart from that, there are two issues: domain:-4:-4 doesn't make too much sense and probably you want to convert the arguments of the trigonometric functions. This works:

\documentclass[12pt]{article}
\usepackage{pgfplots}
\usetikzlibrary{arrows}
\usepgfplotslibrary{external}
\tikzexternalize

\pagestyle{empty}

\begin{document}

\begin{center}
\begin{tikzpicture}[scale=.75]
\begin{axis}

• @JohnC Interesting. On my machine it takes less than a second. Are you compiling with -shell-escape? (I am using pdflatex -shell-escape.) Do the other documents compile on your machine? – marmot Mar 25 '18 at 3:57
• @JohnC I hope that there is not as space in your prompt. If yes, try pdflatex -shell-escape Trig\ Graph.tex, i.e. add a backslash, since otherwise the pdflatex will try to compile Trig.tex. – marmot Mar 25 '18 at 4:13