TikZ - 描绘游戏均衡结构的图表(两个轴内有文字)

TikZ - 描绘游戏均衡结构的图表(两个轴内有文字)

我正在尝试使用 Tikz 制作下图,描绘游戏(博弈论)的均衡/均衡结构,并在两个轴(X 和 C,通过连接到轴 X 处两点的虚线将它们分开)内包含一些文本:

均衡结构

到目前为止我所知道的只有这些:

\documentclass[tikz, border=5pt]{standalone}
\usetikzlibrary{arrows.meta, intersections}

\begin{document}
\begin{tikzpicture}[yscale=2,
     > = Stealth,
dot/.style = {circle, draw=black, solid, 
          fill=#1, % default blue!50
          minimum size=3pt, inner sep=0pt,
          node contents={}},
dot/.default = blue!50,
domain=0:5, samples=100,
                    ]
% axis
\draw[->] (-0.6,0) -- (10,0.0) node [below left] {$X$};
\draw[->] (0,-0.2) -- (0,3.5) node [below left] {$C$};
\coordinate (O) at (0,0);


\end{tikzpicture}
\end{document}

答案1

像这样?

在此处输入图片描述

\documentclass[tikz, border=3mm]{standalone}
\usetikzlibrary{arrows.meta,
                positioning}
\usepackage{amsmath}

\begin{document}
\begin{tikzpicture}[
                > = Straight Barb,
    node distance = 0mm,
box/.style = {minimum height=#1, text width=32mm, align=left, % center?
              inner sep=2mm, outer sep =0pt, anchor=south west}
                    ]
\node (n1) [box=60mm] {TEXT, TEX, TEXT, TEXT, TEXT, TEXT}; 
\node (n2) [box=30mm, 
            above right=of n1.south east] {TEXT, TEX, TEXT, TEXT, TEXT, TEXT};
\node (n3) [box=30mm,
            above=of n2] {TEXT, TEXT, EXT, TEXT, TEXT, TEXT};
\node (n4) [box=60mm,
            above right=of n2.south east] {TEXT, TEX, TEXT, TEXT, TEXT, TEXT};
% borders
\draw[dashed]   (n1.north east) -- (n1.south east) node[below] {$\bar{R} - L_p$}
                (n4.north west) -- (n4.south west) node[below] {$\bar{R}$}
                (n2.north west) -- (n2.north east);
% axis
\draw[->] (-0.4,0) -- (10,0) node [below left] {$X$};
\draw[->] (0,-0.4) -- node[left] {$\dfrac{a}{b}$} 
                      ( 0,7) node [below left] {$C$};
\coordinate (O) at (0,0);
    \end{tikzpicture}
\end{document}

相关内容