Created
March 23, 2017 09:50
-
-
Save dfbarrero/02d42b26bc6e89d82cb83f9e445c146e to your computer and use it in GitHub Desktop.
Queue figure with LaTeX/Tikz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \begin{tikzpicture}[draw, minimum width=1cm, minimum height=0.5cm] | |
| \node[draw] (in) at (-1,2) {}; | |
| \node[draw] (out) at (1,-2) {}; | |
| \matrix (queue)[matrix of nodes, nodes={draw, nodes={draw}}, nodes in empty cells] | |
| { | |
| \\ \\ \\ \\ | |
| }; | |
| \draw[-latex] (0.25,-1) .. controls (0.25,-1.25) and (1,-1.25) .. (out.north); | |
| \draw[-latex] (in.south) .. controls (-1, 1.5) and (-0.25,1.5) .. (-0.25,1); | |
| \end{tikzpicture} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment