UpdatePlotOfGraphs_jd

PURPOSE ^

SYNOPSIS ^

function UpdatePlotOfGraphs_jd(hObject, eventdata, handles)

DESCRIPTION ^

 This function updates the list of graphs in listbox

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function UpdatePlotOfGraphs_jd(hObject, eventdata, handles)
0002 %
0003 % This function updates the list of graphs in listbox
0004 %
0005 %
0006 ListOfGraphs = [];
0007 for iGraph = 1:length(handles.graphs),
0008     ListOfGraphs(iGraph) = handles.graphs{iGraph}.hgraph;
0009 end        
0010 %
0011 ListOfPlots = get(hObject,'Children');
0012 %
0013 for iPlot = 1:length(ListOfPlots),
0014     if isempty(ListOfGraphs) | min(abs(ListOfGraphs - ListOfPlots(iPlot))) ~= 0
0015         delete(ListOfPlots(iPlot))
0016     end
0017 end
0018 %
0019 if isempty(get(hObject,'Children'))
0020     delete(get(hObject,'xlabel'));
0021     delete(get(hObject,'ylabel'));
0022     delete(get(hObject,'zlabel'));
0023 end

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.