34 lines
1.1 KiB
TeX
34 lines
1.1 KiB
TeX
\begin{tikzpicture}
|
|
\pgfplotstableread[col sep=comma]{plots/speedup_tables/vector.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={vadd}]{\csv};
|
|
\addlegendentry{VADD}
|
|
|
|
\addplot[fill=_orange!90] table [x expr=\coordindex, y={vmul}]{\csv};
|
|
\addlegendentry{VMUL}
|
|
|
|
\addplot[fill=_yellow!90] table [x expr=\coordindex, y={haxpy}]{\csv};
|
|
\addlegendentry{HAXPY}
|
|
\end{axis}
|
|
\end{tikzpicture}
|