function switchyard_cb(flag)
%SWITCHYARD_CB Callbacks for Switchyard Example

switch flag
case 'change color'
   h_edit_text = gcbo;
   h_lines = findobj(gcf, 'Type', 'line');
   color_string = get(h_edit_text, 'String');
   color_value = str2num(color_string);
   set(h_lines, 'Color', color_value);
end
