Add initial threshold plotting code

Still needs testing on Minerva