data and plotting for thesis chap4