%!TEX pdflatex
\documentclass{article}
\usepackage{ProfLycee}
\defKV[histostats]{%
ListeCouleurs=\def\HistoCouleurs{#1}
}
\setKVdefault[histostats]{%
ListeCouleurs=white
}
\NewDocumentCommand\Histo{ O{} m }{%
\useKVdefault[histostats]%
\setKV[histostats]{#1}%
\setsepchar[.]{ ./}%
\readlist*\LISTDONNEES{#2}%
\setsepchar{,}%
\readlist*\LISTCOUL{\HistoCouleurs}%
\foreach \i in {1,...,\LISTDONNEESlen}
{%
\xintifboolexpr{\LISTCOULlen == 1}%
{\def\couleurhisto{\HistoCouleurs}}%
{\itemtomacro\LISTCOUL[\i]{\couleurhisto}}%
\draw[line width=1pt,fill=\couleurhisto,fill opacity=0.5] ({\LISTDONNEES[\i,1]-\axexOx},0) rectangle ({\LISTDONNEES[\i,2]-\axexOx},{\LISTDONNEES[\i,3]}) ;
}%
}
\begin{document}
\begin{tikzpicture}[x=1cm,y=0.05cm,Ox=7,xmin=7,xmax=15.5,ymin=0,ymax=210,xgrille=20,ygrille=20]
\GrilleTikz[Affs=false]
\Histo[ListeCouleurs=orange]{7/9/130 9/11/175 11/13/182 13/15/95}
\AxesTikz[ElargirOx=0,ElargirOy=0,AffLabel=xy,Labelx={Taille en cm},Labely={Effectif}]
\AxexTikz{7,9,...,15} \AxeyTikz{0,20,...,200}
\end{tikzpicture}
\end{document}