function removets(view,ts)

%% Removes a time series from a view node. 
if ~isempty(view.Plot)
    [junk,I] = view.Plot.getTimeSeries(ts.Name);
    if ~isempty(I)
        view.Plot.rmwave(view.Plot.waves(I));
    end
end
view.send('tschanged',handle.EventData(view,'tschange'));