Final plots and code