function addPlot(h,label)

%% Add view menu callback which adds a new time series to the
%% MDI view
name = inputdlg('Name for new plot','Time Series Tools');
if ~isempty(name)
    if ~isempty(deblank(name{1}))
        h.ViewsNode.getChildren('Label',label).addplot(...
            h.TreeManager,name{1});
    else
        errordlg('Plots cannot have an empty name','Time Series Tools',...
            'modal')
    end
end