ChangeGraphProperty_jd

PURPOSE ^

SYNOPSIS ^

function ChangeGraphProperty_jd(hObject, eventdata, handles, axes, selectedgraphs, property, listofitems)

DESCRIPTION ^

 This function changes any property of the selected graphs in axes.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ChangeGraphProperty_jd(hObject, eventdata, handles, axes, selectedgraphs, property, listofitems)
0002 %
0003 % This function changes any property of the selected graphs in axes.
0004 %
0005 NewPropertyItemIndex = get(hObject,'Value');
0006 %
0007 if NewPropertyItemIndex > 2,
0008     NewProperty = listofitems{NewPropertyItemIndex - 2};
0009 else
0010     return
0011 end
0012 %
0013 for iGraph = 1:length(handles.graphs),
0014     if isequal(handles.graphs{iGraph}.axes,axes)...
0015      & min(abs(selectedgraphs - iGraph)) == 0,
0016         set(handles.graphs{iGraph}.hgraph,property,NewProperty) 
0017     end
0018 end
0019 %

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