0001 function [handles,SelectedGraphs] = AddNewGraph_jd(hObject, eventdata, handles, axes, listbox, visible, selectedgraphs)
0002
0003
0004
0005 graph = AddGraph_jd(axes, [], handles);
0006
0007 SelectedGraphs = selectedgraphs;
0008
0009 if ~isempty(graph)
0010
0011
0012
0013 handles.graphs{length(handles.graphs) + 1} = graph;
0014
0015 UpdateListOfGraphs_jd(listbox, [], handles, axes);
0016
0017 NewInListIndex = length(get(listbox,'String'));
0018
0019 set(listbox,'Value',NewInListIndex)
0020
0021 SelectedGraphs = length(handles.graphs);
0022
0023 UpdateVisible_jd(visible, [], handles, axes, SelectedGraphs);
0024
0025 end