我想绘制一个具有最大点的能量图。我从以下代码开始:
\documentclass[openany,twoside]{book}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw[<->](0,5)node[above,rotate=90,xshift=-2cm]{Energy}|-
(5,0)node[below,xshift=-2cm]{Reaction coordinate};
\draw (0,2.5)--(1,2.5);
\draw[dashed](1,2.5)--(2.6,2.5);
\draw (3.9,1)--(4.7,1);
\draw[dashed](3.9,1)--(2.4,1);
\draw plot[smooth] coordinates{(1,2.5)(2.5,4.5)(3.6,1.4)(3.9,1)};
\end{tikzpicture}
\end{document}
这导致:
我的目标是得到下面的图像:
答案1
我不知道你需要这个图有多精确,但如果不需要太精确,你可能可以采用这个粗略的近似值:
\documentclass[tikz, border=1mm]{standalone}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw[<->](0,5)node[above,rotate=90,xshift=-2cm]{Energy}|-
(5,0)node[below,xshift=-2cm]{Reaction coordinate};
\draw (0,2.5)--(1,2.5);
\draw[dashed](1,2.5)--(2.6,2.5);
\draw (3.9,1)--(4.7,1);
\draw[dashed](3.9,1)--(2.4,1);
\draw (1,2.5) to[in=180, out=0, looseness=.65] (2.35,4.5) to[in=180, out=0, looseness=.45] (3.9,1);
\end{tikzpicture}
\end{document}