我测试了下没问题:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[domain=-2:2, samples=300,scale=1]
\begin{scope}
\draw plot (\x, {cosh(\x)}) ;
\end{scope}
\draw[->] (-3,0) -- (3,0) node[right]{$x$};
\draw[->] (0,-3) -- (0,3) node[right]{$y$};
\draw (0,0) node[below right]{$0$};
\end{tikzpicture}
\end{document}
谢谢谢谢