I've got a bar graph with two bars for each of the two groups. Below is my MWE. I've been struggling to work out how to draw an upward arrow between the blue bar and the red bar for Gen 1 group, and a downward arrow between the blue bar and the red bar for Gen 2.
If someone could please help that'd be extremely helpful.
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
ybar, bar width=23pt,
ymajorgrids=true,
grid style=dashed,
enlarge x limits=0.4,
% legend style={at={(1.2, 0.5), \footnotesize},
% anchor=west,legend columns=1.8},
legend style={anchor=north east,legend columns=1.8,font=\footnotesize},
ylabel={\% of the total ML-identifable mixed clauses},
symbolic x coords={Gen1, Gen2},
xtick=data,
ymin=0,
ymax=100,
ytick={10,30,50,70,90},
nodes near coords,
point meta=explicit symbolic
]
\addplot coordinates {(Gen1,22)[{141}] (Gen2,53)[{273}]};
\addplot coordinates {(Gen1,78)[{510}] (Gen2,47)[{242}]};
\legend{E ML, V ML}
\end{axis}
\end{tikzpicture}
\caption{Opposite distribution}
\label{fg:MLdistribution}
\end{figure}
