\documentclass[tikz,border=10pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \begin{axis}[ybar, samples=10, enlarge y limits=upper, ymin=0] \addplot +[ black, fill=yellow, postaction={ pattern=north east lines } ]{rnd}; \end{axis} \end{tikzpicture} \end{document}