pictures, analysis and plotting code