【白兔兔】TiKZ画浮动汇率制度下的财政政策图

来源:互联网 发布:java代码加密 编辑:程序博客网 时间:2024/04/28 06:50
%原创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=white,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{white}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] {};\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]-}] (1.0,3.3)--(1.6,3.3) node[midway,sloped,above=1.5mm,right=-2.3mm] {\zihao{-6}\ding{173}} ;\end{tikzpicture}\end{document}