plot hist for flow records