Plotting the histogram with matlibplot