This is my code at the moment:
% Rest of document omitted brevity...
\subsection*{f(x) = cosec(x)}
\begin{tikzpicture}
\begin{axis}[every axis plot post/.append style={
mark=none,
domain=0:360,
samples=500,
smooth}, % All plots: 50 samples, smooth, no marks
axis x line=middle,
axis y line=center,
xmin=0,
xmax=360,
ymin=-1,
ymax=1,
enlargelimits=upper] % extend the axes a bit to the right and top
\addplot {1 / sin(x)};
\end{axis}
\end{tikzpicture}
% Rest of document omitted brevity...
This looks right to me, however, when I try and compile, I get: C:/Users/Todd/Dropbox/Homework/Notes/A-level_Maths/Core 3/Graphs/Graphs.tex:111: Dimension too large. [\end{axis}]
When I change \addplot {1 / sin(x)}; to \addplot {sin(x)}; the document compiles without any issues. What am I doing wrong?


