0001 function SelectedGraphs = UpdateSelectedGraphs_jd(hObject, eventdata, handles, axes, visible)
0002
0003
0004
0005
0006 graphtypes = get(hObject,'String');
0007 graphtypesselected = graphtypes(get(hObject,'Value'));
0008
0009 SelectedGraphs = [];
0010
0011 for iGraph = 1:length(handles.graphs),
0012 for iList = 1:length(graphtypesselected),
0013 if isequal(handles.graphs{iGraph}.axes,axes)...
0014 & isequal(handles.graphs{iGraph}.type,graphtypesselected{iList}),
0015 SelectedGraphs = [SelectedGraphs,iGraph];
0016 end
0017 end
0018 end
0019
0020 UpdateVisible_jd(visible, [], handles, axes, SelectedGraphs);
0021