.
It seems to point to this part of the code:
table [
x index=0,
% because only every second step should be filled
% switch the height of the bar between `ymax' and
% `ymin'. (To fill it the other way round, just
% replace `ymin' with `ymax' and vice versa)
y expr={ifthenelse(mod(\coordindex,2) == 0,
\pgfkeysvalueof{/pgfplots/ymax},
\pgfkeysvalueof{/pgfplots/ymin})
},
]
{data2.txt};