Made some headway. Note that I broke something somewhere, or so it seems, as the plots from the early section are not getting plotted on my system when I run the big script. However, if I copy and paste a snippet in dynamically, the plot gets generated.. Not sure what that's about.