Skip to content

Instantly share code, notes, and snippets.

@spiros
Created August 17, 2011 15:18
Show Gist options
  • Save spiros/1151751 to your computer and use it in GitHub Desktop.
Save spiros/1151751 to your computer and use it in GitHub Desktop.
HES graph LaTeX and TikZ source code
\documentclass[8pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[scale=.6,every node/.style={minimum size=1cm},on grid]
\begin{scope}[
yshift=9.5,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1 ]
\fill[white,fill opacity=.9] (0,0) rectangle (4,4);
\draw[step=10mm, black] (1,1) grid (4,4);
\draw[black,very thick] (1,1) rectangle (4,4);
\draw[black,very thick, dashed] (0,0) rectangle (5,5);
\end{scope}
\begin{scope}[
yshift=-100,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1 ]
\fill[white,fill opacity=.1] (0,0) rectangle (5,5);
\draw[step=4mm, black] (0,0) grid (5,5);
\fill[red] (0.05,0.05) rectangle (0.35,0.35);
\draw[black,very thick] (0,0) rectangle (5,5);%marking borders
\end{scope}
\begin{scope}[
yshift=-170,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1 ]
\draw[black,very thick] (0,0) rectangle (5,5);
\end{scope}
\draw[-latex,thick](5.9,5)node[right]{Augmented care period}
to[out=180,in=90] (1.1,3);
\draw[-latex,thick](5.8,-.3)node[right]{Episode}
to[out=180,in=90] (3.9,-1);
\draw[-latex,thick,red](5.3,-3.9)node[right]{
\begin{tabular}{ l }9 births \\ 20 diagnosis \\ 24 operations \\ \end{tabular} }
to[out=180,in=90] (0,-3);
\draw[-latex,thick](5.2,-6.7)node[right]{Spell}
to[out=180,in=90] (2,-5);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment