Advertisement
Guest User

Untitled

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