Since the values for the "FPGA" (Brown) chart is really small(0.0002, green doesnt show up), i wanted to use logarithmic scale instead. I tried using "ymode=log," but it makes the chart go wonky.
Additionally, I want to also add another right hand, y-axis to compare the throughput data, each bar graph having a value ranging from 0-2, probably a disconnected line plot.
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}\begin{figure}[!h]
\centering
\begin{tikzpicture}
\begin{axis}[
ybar,
ymin=0,
%enlargelimits=0.15,
legend image code/.code={%
\draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.6cm,0.1cm);
},
legend style={at={(0.5,-0.10)},
anchor=north,legend columns=-1},
ylabel={Execution Time (ms)},
symbolic x coords={RGB2GRAY,Gaussian,Box,Sobel},
xtick=data,
nodes near coords,
nodes near coords align={vertical},
]
\addplot coordinates {(RGB2GRAY,33) (Gaussian,54) (Box,127) (Sobel,246) };%CPU
\addplot [fill=teal!] coordinates {(RGB2GRAY,8.221) (Gaussian,13.3254) (Box,14.958) (Sobel,29.935) };%GPU
\addplot coordinates {(RGB2GRAY,20.234959834) (Gaussian,26.492609995) (Box,27.353843832) (Sobel,45.59262995) };%FPGA
\legend{CPU,GPU,FPGA}
\end{axis}
\end{tikzpicture}
\caption{Algorithms Excluding Image Read/Write}
\label{imageexclude}
\end{figure}
\end{document}