Histogram not showing up after drawing