Files
drampower-paper/img/benchmark_plot.tex
2024-11-14 13:25:09 +00:00

57 lines
1.4 KiB
TeX

% \begin{tikzpicture}
% \begin{axis}[
% ybar,
% symbolic x coords={nopower-nostore, power-nostore, nopower-store, power-store},
% xtick=data,
% xlabel={Benchmark},
% ylabel={CPU Time [ms]},
% nodes near coords,
% ymin=0,
% width=15cm,
% height=5cm,
% bar width=20pt,
% enlarge x limits=0.2,
% ytick=\empty,
% axis line style={-} ,
% ymin=0,
% enlarge y limits={value=0.3,upper},
% % every node near coord/.append style={yshift=-0.4cm, xshift=23pt},
% ]
% \addplot[
% color=blue,
% fill=blue!40
% ] table[
% x=Name,
% y=CPU_Time_ms,
% col sep=comma
% ] {data/benchmarks.csv};
% \end{axis}
% \end{tikzpicture}
\pgfplotsset{compat=1.3}
\begin{tikzpicture}
\begin{axis}[
xbar,
symbolic y coords={nopower-nostore, power-nostore, nopower-store, power-store},
xtick=data,
ylabel={Benchmark},
xlabel={CPU Time [ms]},
nodes near coords,
width=8cm,
height=4cm,
bar width=8pt,
enlarge y limits=0.2,
enlarge x limits=0.5,
xtick=\empty,
axis line style={-} ,
ytick style={draw=none},
]
\addplot[
color=blue,
fill=blue!40
] table[
y=Name,
x=CPU_Time_ms,
col sep=comma
] {data/benchmarks.csv};
\end{axis}
\end{tikzpicture}