forked from erikbern/ann-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatex.template
30 lines (29 loc) · 891 Bytes
/
latex.template
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
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel={ {{xlabel}} },
ylabel={ {{ylabel}} },
ymode = log,
yticklabel style={/pgf/number format/fixed,
/pgf/number format/precision=3},
legend style = { anchor=west},
cycle list name = black white
]
{% for algo in plot_data %}
{% if algo.scatter %}
\addplot [only marks] coordinates {
{% else %}
\addplot coordinates {
{% endif %}
{% for coord in algo.coords %}
({{ coord[0]}}, {{ coord[1] }})
{% endfor %}
};
\addlegendentry{ {{algo.name}} };
{% endfor %}
\end{axis}
\end{tikzpicture}
\caption{ {{caption}} }
\label{}
\end{figure}