我需要一些 tikz 方面的帮助。我不知道如何绘制像图片上这个红色的曲线图,我已经准备好了轴、虚线和这些箭头。
这是我的代码:
\begin{tikzpicture}
\begin{axis}[
axis lines = left,
xmin=0, xmax=10,
ymin=0, ymax=10,
xtick = \empty, ytick = {0},
clip = false,
]
\node [below] at (current axis.right of origin) {$t$};
\node [left] at (current axis.above origin) {$E$};
\addplot[color = grey!60!white, dashed, thick] coordinates {(0,4) (8,4)};
\draw[-{Triangle}, grey!80!white, opacity = 0.8] (1.5,0.1) to (1.5, 3.9);
\draw[-{Triangle}, grey!80!white, opacity = 0.8] (7,0.1) to (7, 1.9);
\draw[-{Triangle}, grey!80!white, opacity = 0.8] (4.5,4.1) to (4.5, 6.9);
\node [right] at (1.5,2) {$E_s$};
\node [right] at (7,1) {$E_p$};
\node [right] at (4.5,5.5) {$E_a$};
\end{axis}
\end{tikzpicture}
有人能帮助我吗?