0001 function UpdateVisible_jd(hObject, eventdata, handles, axes, selectedgraphs)
0002
0003
0004
0005 Visiblegraphs = [];
0006 for iGraph = 1:length(handles.graphs),
0007 if isequal(handles.graphs{iGraph}.axes,axes)...
0008 & min(abs(selectedgraphs - iGraph)) == 0,
0009 Visiblegraphs = [Visiblegraphs,isequal(get(handles.graphs{iGraph}.hgraph,'visible'),'on')];
0010 end
0011 end
0012
0013 if max(Visiblegraphs) == 0,
0014 set(hObject,'value',0,'visible','on');
0015 elseif min(Visiblegraphs) == 1,
0016 set(hObject,'value',1,'visible','on');
0017 else
0018 set(hObject,'visible','off')
0019 end
0020