histogram drawing