I would like to insert some indications on the histogram bars. The only thing I've done so far is to add some labels. But the desired result looks more like the following figure:
My code:
\documentclass{article}
\usepackage{tikz,pgf,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ybar,
enlargelimits=0.15,
legend style={at={(0.5,-0.2)},
anchor=north,legend columns=-1},
ylabel={No. of edges},
xlabel={weights},
xtick=data,
nodes near coords,
nodes near coords align={vertical}
]
\addplot[fill=white, draw=black] coordinates {(1,22084) (2,4627) (3,742)
(4,377) (5,199) (6,93) (7,55) (8,44)};
\end{axis}
\end{tikzpicture}
\end{document}
produces the picture:
I would like to indicate the first and the second bar of this picture.


