本文主要是介绍【白兔兔】TiKZ画固定汇率制度下的财政政策图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
%原创14 金融工程-白兔兔
%固定汇率制度下的财政政策
\documentclass{standalone}
\usepackage{ctex}
\usepackage{unicode-math}
\setmainfont{XITS}
\setmathfont{XITS Math}
\usepackage{pifont}
\usepackage{graphicx}
\usepackage{color,xcolor}
\usepackage{tikz}
%\usetikzlibrary{quotes,angles}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{datavisualization.formats.functions}% hanshu
\usetikzlibrary{calc}%
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{intersections}
\usetikzlibrary{quotes,angles}
\begin{document}\begin{tikzpicture}
\draw [<->,arrows = {Stealth[reversed, reversed]-Stealth[reversed, reversed]}] (0,4.5) node (yaxis) [above] {$$}|- (5.3,0) node (iaxis) [right] {$$};
\draw (-0.18,4.4) node {\zihao{-5}$i$};
\draw (5.2,-0.26) node {\zihao{-5}$Y$};
\draw[color=red,domain=0.7:4.1,name path=LM,line width=0.5pt] plot (\x,0.8*\x-0.1) node (LM) [right=0.5mm,above=-0.5mm] {\zihao{-6}${\color{darkgray}LM}$}; % LM 线
\draw[color=red,domain=1.5:4.8,name path=dLM,line width=0.5pt] plot (\x,0.8*\x-1.0) node [right=0.9mm,above=-0.5mm] {\zihao{-6}${\color{darkgray}LM'}$}; % LM'线
\draw[color=red,domain=1.3:4.8,name path=dIS,line width=0.5pt] plot (\x,-0.90*\x+5.01) node [right=1.1mm,below=-0.8mm] {\zihao{-6}${\color{darkgray}IS'}$}; % IS'线
\draw[color=red,domain=0.5:4,name path=IS,line width=0.5pt] plot (\x,-0.90*\x+4) node [right=0.8mm,below=-0.5mm] {\zihao{-6}${\color{darkgray}IS}$}; % IS 线
\path [name intersections={of=LM and IS,by={[label=above:{\zihao{-6}$A_0$}]a0}}];
% LM 与 IS 的交点
\draw[dashed,line width=0.3pt] (yaxis |-a0) node[left=-0.5mm] {\zihao{-5} $i^*$}-| (iaxis -| a0) node[below=0.4mm] {\zihao{-5}$Y_0$};
\path [name intersections={of=LM and dIS,by={[label={above,right=0.5mm}:{\zihao{-6}$A'$}]a'}}];
% LM 与 IS’ 的交点
\draw[dashed,line width=0.3pt] (yaxis |-a') node[left=-0.5mm] {\zihao{-5}$i'$}-| (iaxis -| a') node[below] {\zihao{-5}$Y'$};
\path [name intersections={of=dLM and dIS,by={[label={above,right=-0.05mm}:{\zihao{-6}$A_1$}]a1}}];
% LM' 与 IS' 的交点
\draw[dashed,line width=0.3pt] (yaxis |-a1) node[left] {}-| (iaxis -| a1) node[below=0.4mm] {\zihao{-5}$Y_1$};
\path (a0) -- (a1) coordinate[pos=2.2](bp2);
\path (a0) -- (a1) coordinate[pos=-1.03](bp1);
\draw[line width=0.5pt,red] (bp1)--(bp2) node[right=-0.5mm] {\zihao{-6}${\color{darkgray}BP}$}; % BP 线
\draw[arrows = {-Stealth[reversed, reversed,scale=0.6]}] (3.8,0.7)--(4.4,0.7) node[midway,sloped,above=1.5mm,right=-2.5mm] {\zihao{-6}\ding{172}} ;
\draw[arrows = {-Stealth[reversed, reversed,scale=0.6]}] (3.8,2.7)--(4.4,2.7) node[midway,sloped,above=1.5mm,right=-2.5mm] {\zihao{-6}\ding{173}} ;
\end{tikzpicture}\end{document}
如图所示
这篇关于【白兔兔】TiKZ画固定汇率制度下的财政政策图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!