答案1
我建议的解决方案是pstricks
:
\documentclass[11pt]{article}
\usepackage{sansmath}
\usepackage{pst-plot, pst-arrow, pst-node}
\begin{document}
\sffamily\sansmath
\begin{pspicture}(0,-2)(5,4)
\psset{unit = 1.5cm, ticksize=-4pt 0, linejoin=1, dotstyle=|, tbarsize=6pt 2}
\psaxes[yAxis=false]{-}(0,0)(3,0)
\psline{-v}(1,0)(1,2)\uput[u](1,2){200}
\psline{-v}(3,0)(3,1)\uput[u](3,1){100}
\psaxes[yAxis=false, xAxis = false, ticksize=-6pt 2pt]{-}(0,-1)(3,-1)
\pnodes{A}(0,-0.8)(2,-0.8) (3,-0.8)
\ncline{|<->|}{A0}{A1}\nbput{$ \mathrm{i}=12\% $}
\ncline{<->|}{A1}{A2}\nbput{$ \mathsf{i}=7\% $}
\end{pspicture}
\end{document}