plot scripts for SP Score