UpdateVisible_jd

PURPOSE ^

SYNOPSIS ^

function UpdateVisible_jd(hObject, eventdata, handles, axes, selectedgraphs)

DESCRIPTION ^

 This function updates the visible state of selected graphs

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function UpdateVisible_jd(hObject, eventdata, handles, axes, selectedgraphs)
0002 %
0003 % This function updates the visible state of selected graphs
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 %

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