This function updates the list of graphs in listbox
0001 function UpdateListOfGraphs_jd(hObject, eventdata, handles, axes) 0002 % 0003 % This function updates the list of graphs in listbox 0004 % 0005 % 0006 ListOfGraphs{1} = 'Click "New" to display results';%Default text 0007 iList = 0; 0008 for iGraph = 1:length(handles.graphs), 0009 if isequal(handles.graphs{iGraph}.axes,axes), 0010 iList = iList+1; 0011 ListOfGraphs{iList} = handles.graphs{iGraph}.type; 0012 end 0013 end 0014 % 0015 set(hObject,'string',ListOfGraphs)