formated histogram output