Files
pimsys-paper/plots/matrix_infinite.tex
2024-03-25 16:37:22 +01:00

31 lines
977 B
TeX

\begin{tikzpicture}
\pgfplotstableread[col sep=comma]{plots/speedup_tables/matrix.csv}\csv
\begin{axis}[
width=5cm,
height=4cm,
ybar=1pt,
bar width = 5pt,
ymin=0,
ymax=20,
ymajorgrids,
ylabel={Speedup},
tick pos=left,
xtick=data,
xticklabels from table={\csv}{level},
enlarge x limits=0.25,
legend style={
at={(current bounding box.south-|current axis.south)},
anchor=north,
legend columns=-1,
draw=none,
/tikz/every even column/.append style={column sep=0.5cm}
},
]
\addplot[fill=_blue!90] table [x expr=\coordindex, y={gemv}]{\csv};
\addlegendentry{GEMV}
\addplot[fill=_orange!90] table [x expr=\coordindex, y={dnn}]{\csv};
\addlegendentry{DNN}
\end{axis}
\end{tikzpicture}