plotting script for Sp02