figPressure.tex 761 Bytes
Newer Older
Chris Jewell's avatar
Chris Jewell committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% TikZ SIR model picture
%
% Requries postitioning,arrows,fit,calc,backgrounds TikZ libraries

%\begin{hyphenrules}{nohyphenation}

\begin{tikzpicture}[
auto,
node distance=24pt,
circ/.style={
circle,
draw=black,
align=center,
minimum height=24pt,
minimum width=24pt}]
\node[circ, fill=ForestGreen] (S) {S};
\node[circ, fill=Red, above right=of S] (I1) {I};
\node[circ,fill=Red, above left=of S] (I2) {I};
\node[circ,fill=Red, below left=of S] (I3) {I};
\node[circ,fill=Red, below right=of S] (I4) {I};

\draw[->,very thick] (I1) to node (I1S) {$\beta$} (S);
\draw[->,very thick] (I2) to node (I2S) {$\beta$} (S);
\draw[->,very thick] (I3) to node (I3S) {$\beta$} (S);
\draw[->,very thick] (I4) to node (I4S) {$\beta$} (S);

\end{tikzpicture}
%\end{hyphenrules}