0001 function varargout = plot2ClistsGui(varargin)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 gui_Singleton = 1;
0023 gui_State = struct('gui_Name', mfilename, ...
0024 'gui_Singleton', gui_Singleton, ...
0025 'gui_OpeningFcn', @plot2ClistsGui_OpeningFcn, ...
0026 'gui_OutputFcn', @plot2ClistsGui_OutputFcn, ...
0027 'gui_LayoutFcn', [] , ...
0028 'gui_Callback', []);
0029 if nargin && ischar(varargin{1})
0030 gui_State.gui_Callback = str2func(varargin{1});
0031 end
0032
0033 if nargout
0034 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0035 else
0036 gui_mainfcn(gui_State, varargin{:});
0037 end
0038
0039 function plot2ClistsGui_OpeningFcn(hObject, eventdata, handles, varargin)
0040 handles.clist = getappdata(0, 'clist');
0041 handles.output = hObject;
0042 handles.char1.String = handles.clist.def';
0043 handles.char2.String = handles.clist.def';
0044 handles.char2.Value = 2;
0045 guidata(hObject, handles);
0046 uiwait(handles.figure1);
0047
0048 function varargout = plot2ClistsGui_OutputFcn(hObject, eventdata, handles)
0049 varargout{1} = handles.clist;
0050
0051 delete(handles.figure1);
0052
0053 function char1_Callback(hObject, eventdata, handles)
0054
0055 function char1_CreateFcn(hObject, eventdata, handles)
0056 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
0057 set(hObject,'BackgroundColor','white');
0058 end
0059
0060 function char2_Callback(hObject, eventdata, handles)
0061
0062 function char2_CreateFcn(hObject, eventdata, handles)
0063 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
0064 set(hObject,'BackgroundColor','white');
0065 end
0066
0067 function plot_two_clists_Callback(hObject, eventdata, handles)
0068 if handles.char1.Value && handles.char2.Value && handles.char1.Value ~= handles.char2.Value
0069 figure(2);
0070 clf;
0071 gateHistDot(handles.clist, [handles.char1.Value handles.char2.Value])
0072 end
0073
0074
0075
0076 function gate2d_Callback(hObject, eventdata, handles)
0077
0078
0079
0080
0081 if handles.char1.Value && handles.char2.Value && handles.char1.Value ~= handles.char2.Value
0082 figure(2);
0083 clf;
0084 handles.clist = gateMake(handles.clist, [handles.char1.Value handles.char2.Value]);
0085 handles.clist;
0086 guidata(hObject, handles)
0087 end
0088
0089
0090
0091 function figure1_CloseRequestFcn(hObject, eventdata, handles)
0092
0093
0094
0095
0096
0097 if isequal(get(hObject, 'waitstatus'), 'waiting')
0098
0099 uiresume(hObject);
0100 else
0101
0102 delete(hObject);
0103 end