Printing and plotting average packets received until pivot