Always in my long learning TikZ, I would build a "real" histogram from the following set of data :
xi ni
1000 5
1200 8
1500 24
2500 13
3000 2
The idea is to group the data into amplitude classes with 300 as the minimum value xmin=800 and xmax = 3200. Also, I would not want the y axis but only the grid. There should also be a legend to indicate the unit area.
\usemodule[tikz]
\usemodule[pgfplots]
\usepgfplotslibrary[statistics]
\pgfplotsset{width=12cm, compat=1.11}
\usemodule[filecontents]
\starttext
\starttikzpicture
\switchtobodyfont[10pt]
\startaxis[
width=10cm,
height=13cm,
ybar interval,
xtick=data,
xticklabel interval boundaries,
x tick label style= {rotate=90,anchor=east,/pgf/number format/1000 sep={}},
axis y line=left,
axis x line=bottom,
enlarge x limits,
ymin=0,
thick,grid=major,
]
\addplot[blue,fill=green]
coordinates {(800,5) (1100,8) (1400,24) (1700,0) (2000,0) (2300,13)
(2600,0) (2900,2) (3200,0)};
\stopaxis
\stoptikzpicture


