UpdateGraphs_jd

PURPOSE ^

SYNOPSIS ^

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

DESCRIPTION ^

 This function updates all properties of the selected graphs in axes.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function UpdateGraphs_jd(hObject, eventdata, handles, axes, selectedgraphs)
0002 %
0003 % This function updates all properties of the selected graphs in axes.
0004 %
0005 Children = get(hObject,'children');
0006 %
0007 for iChild = 1:length(Children),
0008     %
0009     PropertyList = get(Children(iChild),'string');
0010     if ~iscell(PropertyList)
0011         continue
0012     end
0013     %
0014     PropertyStyle = PropertyList{1};
0015     %
0016     % update line style
0017     %
0018     if isequal(PropertyStyle,'Line style'),
0019         %
0020         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'linestyle', handles.listoflinestyles)
0021         %
0022     elseif isequal(PropertyStyle,'Line width'),
0023         %
0024         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'linewidth', handles.listoflinewidths)
0025         %
0026     elseif isequal(PropertyStyle,'Line color'),
0027         %
0028         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'color', handles.listoflinecolors)
0029         %
0030     elseif isequal(PropertyStyle,'Marker style'),
0031         %
0032         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'marker', handles.listofmarkerstyles)
0033         %
0034     elseif isequal(PropertyStyle,'Marker size'),
0035         %
0036         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'markersize', handles.listofmarkersizes)
0037         %
0038     elseif isequal(PropertyStyle,'Marker color'),
0039         %
0040         UpdateGraphProperty_jd(Children(iChild), [], handles, axes, selectedgraphs, 'markeredgecolor', handles.listofmarkercolors)
0041         %
0042     end
0043 end
0044 
0045 
0046 
0047 
0048

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