save function for HB excitability plotting