Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[margin=10]{standalone}
- \usepackage{tikz}
- \usetikzlibrary{calc,matrix,positioning}
- % \smash{\rlap{*}} removes space taken up by *
- \begin{document}
- \begin{tikzpicture}[element/.style={text height=1em, minimum height=1cm, minimum width=2cm}]
- \matrix (m) [matrix of nodes, nodes={element}, column sep=-\pgflinewidth, row sep=-3*\pgflinewidth, anchor=center]{
- & Cooperate & Defect \\
- Cooperate & |[draw]|3,3 & |[draw]|1,4 \\
- Defect & |[draw]|4,1 & |[draw]|2,2\smash{\rlap{*}} \\
- };
- \node[above=0.25cm] at ($(m-1-2)!0.5!(m-1-3)$){\textbf{Actor A}};
- \node[rotate=90] at ($(m-2-1)!0.5!(m-3-1)+(-1.25,0)$){\textbf{Actor B}};
- \node [below=1.5cm, align=flush center,text width=8cm]
- {\begin{scriptsize}
- Number left (right) of comma refers to A's (B's) preference ordering (1 = worst outcome; 4 = best outcome). * indicates the equilibrium.
- \end{scriptsize}
- };
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement