![绘制以下图形及其所有元素](https://linux22.com/image/385668/%E7%BB%98%E5%88%B6%E4%BB%A5%E4%B8%8B%E5%9B%BE%E5%BD%A2%E5%8F%8A%E5%85%B6%E6%89%80%E6%9C%89%E5%85%83%E7%B4%A0.png)
答案1
这是另一种选择。(编辑:已更正xlabel
,非常感谢thymaro
!)
\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis x line=middle, axis y line=middle,
xtick=\empty,ytick=\empty,
%ymin=-0.5, ymax=3,
ylabel=$y$,
xmin=-1.7,xmax=1.9,xlabel=$\alpha$,
samples=101,
legend pos=south east]
\addplot [blue,thick,domain=-1.5:1.6] {sinh(x)} node[pos=0.87,below,sloped]
{$y=\sinh\alpha$};
\addplot [red,thick,domain=-1.5:1.5] {cosh(x)} node[pos=0.82,above,sloped]
{$y=\cosh\alpha$};
\addplot [black,dashed,thick,domain=-1.5:1.55] {exp(x)/2} node[pos=0.1,above,sloped]
{$y=\frac{1}{2}\mathrm{e}^\alpha$};
\addplot [black,dashed,thick,domain=-1.5:1.5] {exp(-x)/2} node[pos=0.9,above,sloped]
{$y=\frac{1}{2}\mathrm{e}^{-\alpha}$};
\end{axis}
\end{tikzpicture}
\end{document}
答案2
这是开始的部分,您需要添加其他曲线。您还可以调整选项以获得您想要的外观。
\documentclass{standalone}
\usepackage{pgfplots,tikz}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin = -2, xmax = 2,
ymin = -1, ymax = 3,
axis lines=middle,
axis equal image,
ticks = none,
xlabel style={below right},
ylabel style={above left},
]
\addplot[samples=100,thick,no marks,color=blue] {cosh(x)}
node[black, rotate = 55] at (axis cs: 1.1,2) {\tiny$y = \cosh(x)$};
\addplot[no marks, dashed] {1/2*exp(x)};
\end{axis}
\end{tikzpicture}
\end{document}