Have now automated plotting and allowed for an input list of conditions to be tested