This function inverts the visible status of selected graphs
0001 function ChangeVisible_jd(hObject, eventdata, handles, axes, selectedgraphs) 0002 % 0003 % This function inverts the visible status of selected graphs 0004 % 0005 if get(hObject,'value') == 0, 0006 visible = 'off'; 0007 else 0008 visible = 'on'; 0009 end 0010 % 0011 for iGraph = 1:length(handles.graphs), 0012 if isequal(handles.graphs{iGraph}.axes,axes)... 0013 & min(abs(selectedgraphs - iGraph)) == 0, 0014 set(handles.graphs{iGraph}.hgraph,'visible',visible); 0015 end 0016 end