I am facing trouble in output of this code for a plot.
Code: Select all
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-6,xmax=6,
ymin=-2,ymax=2,
axis x line=middle,
axis y line=middle,
axis line style=<->,
xlabel={$x$},
ylabel={$y$},
]
\addplot[no marks,blue,<->] expression[samples=100]{cosec(deg(x} node[pos=3.0,anchor=south east]{$y=\cosec(x)$};
\end{axis}
\end{tikzpicture}
\end{document}
Code: Select all
! Undefined control sequence.
Regards,
Sachin Sharma