first of four plots (code and image)
second plot of four