我想合并 3 个条形图
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}
[
ybar,
xticklabel style={rotate=45, anchor=north east},
%ylabel={\# Parameters ($*10^6$)},
symbolic x coords={A, B, C, D, E},
bar width=10pt,
xtick=data,
nodes near coords,
nodes near coords align={vertical},
ymin=-0,
]
\addplot coordinates {(A,2.98) (B,50) (C,50) (D, 23) (E, 138) };
%
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
[
ybar,
xticklabel style={rotate=45, anchor=north east},
%ylabel={\# Parameters ($*10^6$)},
symbolic x coords={F, G, H},
bar width=10pt,
xtick=data,
nodes near coords,
nodes near coords align={vertical},
ymin=-0,
]
\addplot[fill=green!40] coordinates {(F,2.98) (G,50) (H,50)};
%
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}
[
ybar,
xticklabel style={rotate=45, anchor=north east},
%ylabel={\# Parameters ($*10^6$)},
symbolic x coords={I, J, K, L},
bar width=10pt,
xtick=data,
nodes near coords,
nodes near coords align={vertical},
ymin=-0,
]
\addplot[fill=red!40] coordinates {(I,2.98) (J,50) (K,50) (L, 23)};
%
\end{axis}
\end{tikzpicture}
\caption{WIP}
\end{figure}
我想让这 3 组彩色条形图位于一个轴上(可能蓝色条形图位于左侧,绿色条形图位于中间,红色条形图位于右侧)。我该怎么做?