paint histrogram