forked from adamwight/ores-diagrams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics.tex
39 lines (34 loc) · 1.43 KB
/
metrics.tex
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
29
30
31
32
33
34
35
36
37
38
39
% Data flow diagram
% Template adapted from http://www.texample.net/tikz/examples/data-flow-diagram/ by David Fokkema
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes}
% Custom, should be provided in the same directory.
\usepackage{datastore}
\begin{document}
\begin{tikzpicture}[
font=\sffamily,
every matrix/.style={ampersand replacement=\&,column sep=2cm,row sep=2cm},
interface/.style={draw,thick,regular polygon,regular polygon sides=4,inner sep=0},
process/.style={draw,thick,rounded corners,inner sep=.3 cm},
datastore/.style={draw,thick,shape=datastore,inner sep=.3cm},
to/.style={->,>=stealth',shorten >=1pt,semithick,font=\sffamily\footnotesize},
every node/.style={align=center}]
% Position the nodes using a matrix layout
\matrix{
\node[process] (scoring) {ORES scoring}; \\
\node[process] (api) {ORES API};
\& \node[interface] (statsd) {statsd}; \\
\node[process] (train) {Train AI}; \\
\node[process] (wikilabels) {Wiki labels};
\& \node (hidden) {}; \\
};
\node [below=2cm, align=flush center] at (hidden)
{\Large ORES: Metrics \\ \normalsize data flow diagram};
% Draw and label arrows between nodes.
\draw[to] (scoring) -- node[midway,right] {metrics} (statsd);
\draw[to] (api) -- node[midway,above] {} (statsd);
\draw[to] (train) -- node[midway,above] {} (statsd);
\draw[to] (wikilabels) -- node[midway,above] {} (statsd);
\end{tikzpicture}
\end{document}