added code for scatter plots of last population