我如何创建债券定价图表?

我如何创建债券定价图表?

我正在写一篇论文,我需要创建一个零息债券定价的基本图表,如下所示:

在此处输入图片描述

提前致谢!

答案1

\documentclass[]{article}

\usepackage{tikz}
\usepackage{amssymb}

\begin{document}

%---------------------------------------------------------
    \begin{tikzpicture}
    \coordinate (A) at (0,0);
    \coordinate (B) at (10,0);

    \draw[|-|] 
        (A)
        node at (A) [above=5pt,color =green] {$P_{t,M}$} 
        node at (A) [below=5pt,color =green] {$t$}
        --
        (B)
        node at (B) [above=5pt,color =green] {$N$}
        node at (B) [below=5pt,color =green] {$t + M$};
\end{tikzpicture}
%---------------------------------------------------------

\end{document}

相关内容