if TSw{ii}.PCh(ic)~=0,
 if TSw{ii}.centered
   d1= TSdata{ii}(ic,[i0:di:i1]); 
   %TSdata0 = mean(TSdata{ii}(ic,[i0:di:i1])); 
   TSdata0=mean(d1(find(isnan(d1)==0)));  
   set(TSw{ii}.PCh(ic), ...
              'Xdata',[i0:di:i1]*dt+t0,...
              'Ydata',TSw{ii}.yFac*(TSdata{ii}(ic,[i0:di:i1])-TSdata0));
 else
   set(TSw{ii}.PCh(ic),...
              'Xdata',[i0:di:i1]*dt+t0,...
              'Ydata',TSdata{ii}(ic,[i0:di:i1])*TSw{ii}.yFac);
 end
end

