IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_scatter1d.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref vis_scatter1d
4 %>
5 %>@image html Screenshot-uip_vis_scatter1d.png
6 %>
7 %> <b>Distribution plot</b> - see vis_scatter1d::type_distr
8 %>
9 %> <b>Index of variable to plot</b> - see vis_scatter1d::idx_fea
10 %>
11 %> @sa vis_scatter1d
12 
13 %>@cond
14 function varargout = uip_vis_scatter1d(varargin)
15 % Begin initialization code - DO NOT EDIT
16 gui_Singleton = 1;
17 gui_State = struct('gui_Name', mfilename, ...
18  'gui_Singleton', gui_Singleton, ...
19  'gui_OpeningFcn', @uip_vis_scatter1d_OpeningFcn, ...
20  'gui_OutputFcn', @uip_vis_scatter1d_OutputFcn, ...
21  'gui_LayoutFcn', [] , ...
22  'gui_Callback', []);
23 if nargin && ischar(varargin{1})
24  gui_State.gui_Callback = str2func(varargin{1});
25 end
26 
27 if nargout
28  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
29 else
30  gui_mainfcn(gui_State, varargin{:});
31 end
32 % End initialization code - DO NOT EDIT
33 
34 
35 % --- Executes just before uip_vis_scatter1d is made visible.
36 function uip_vis_scatter1d_OpeningFcn(hObject, eventdata, handles, varargin)
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
39 gui_set_position(hObject);
40 
41 
42 
43 % --- Outputs from this function are returned to the command clae.
44 function varargout = uip_vis_scatter1d_OutputFcn(hObject, eventdata, handles)
45 try
46  uiwait(handles.figure1);
47  handles = guidata(hObject);
48  varargout{1} = handles.output;
49  delete(gcf);
50 catch
51  output.flag_ok = 0;
52  output.params = {};
53  varargout{1} = output;
54 end;
55 
56 
57 
58 function editReg_Callback(hObject, eventdata, handles)
59 
60 % --- Executes during object creation, after setting all properties.
61 function editReg_CreateFcn(hObject, eventdata, handles)
62 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
63  set(hObject,'BackgroundColor','white');
64 end
65 
66 
67 
68 % --- Executes on button press in pushbuttonOK.
69 function pushbuttonOK_Callback(hObject, eventdata, handles)
70 % hObject handle to pushbuttonOK (see GCBO)
71 % eventdata reserved - to be defined in a future version of MATLAB
72 % handles structure with handles and user data (see GUIDATA)
73 try
74  handles.output.params = {...
75  'type_distr', int2str(get(handles.popupmenuDist, 'Value')-1), ...
76  'idx_fea', get(handles.editFeaIdx, 'String') ...
77  };
78  handles.output.flag_ok = 1;
79  guidata(hObject, handles);
80  uiresume();
81 catch ME
82  irerrordlg(ME.message, 'Cannot continue');
83 
84 end;
85 
86 % --- Executes on selection change in popupmenuDist.
87 function popupmenuDist_Callback(hObject, eventdata, handles)
88 % hObject handle to popupmenuDist (see GCBO)
89 % eventdata reserved - to be defined in a future version of MATLAB
90 % handles structure with handles and user data (see GUIDATA)
91 
92 % Hints: contents = get(hObject,'String') returns popupmenuDist contents as cell array
93 % contents{get(hObject,'Value')} returns selected item from popupmenuDist
94 
95 
96 % --- Executes during object creation, after setting all properties.
97 function popupmenuDist_CreateFcn(hObject, eventdata, handles)
98 % hObject handle to popupmenuDist (see GCBO)
99 % eventdata reserved - to be defined in a future version of MATLAB
100 % handles empty - handles not created until after all CreateFcns called
101 
102 % Hint: popupmenu controls usually have a white background on Windows.
103 % See ISPC and COMPUTER.
104 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
105  set(hObject,'BackgroundColor','white');
106 end
107 
108 
109 
110 function edit13_Callback(hObject, eventdata, handles)
111 % hObject handle to edit13 (see GCBO)
112 % eventdata reserved - to be defined in a future version of MATLAB
113 % handles structure with handles and user data (see GUIDATA)
114 
115 % Hints: get(hObject,'String') returns contents of edit13 as text
116 % str2double(get(hObject,'String')) returns contents of edit13 as a double
117 
118 
119 % --- Executes during object creation, after setting all properties.
120 function edit13_CreateFcn(hObject, eventdata, handles)
121 % hObject handle to edit13 (see GCBO)
122 % eventdata reserved - to be defined in a future version of MATLAB
123 % handles empty - handles not created until after all CreateFcns called
124 
125 % Hint: edit controls usually have a white background on Windows.
126 % See ISPC and COMPUTER.
127 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
128  set(hObject,'BackgroundColor','white');
129 end
130 
131 
132 
133 function editFeaIdx_Callback(hObject, eventdata, handles)
134 % hObject handle to editFeaIdx (see GCBO)
135 % eventdata reserved - to be defined in a future version of MATLAB
136 % handles structure with handles and user data (see GUIDATA)
137 
138 % Hints: get(hObject,'String') returns contents of editFeaIdx as text
139 % str2double(get(hObject,'String')) returns contents of editFeaIdx as a double
140 
141 
142 % --- Executes during object creation, after setting all properties.
143 function editFeaIdx_CreateFcn(hObject, eventdata, handles)
144 % hObject handle to editFeaIdx (see GCBO)
145 % eventdata reserved - to be defined in a future version of MATLAB
146 % handles empty - handles not created until after all CreateFcns called
147 
148 % Hint: edit controls usually have a white background on Windows.
149 % See ISPC and COMPUTER.
150 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
151  set(hObject,'BackgroundColor','white');
152 end
153 
154 
155 % --- Executes on selection change in popupmenu15.
156 function popupmenu15_Callback(hObject, eventdata, handles)
157 % hObject handle to popupmenu15 (see GCBO)
158 % eventdata reserved - to be defined in a future version of MATLAB
159 % handles structure with handles and user data (see GUIDATA)
160 
161 % Hints: contents = cellstr(get(hObject,'String')) returns popupmenu15 contents as cell array
162 % contents{get(hObject,'Value')} returns selected item from popupmenu15
163 
164 
165 % --- Executes during object creation, after setting all properties.
166 function popupmenu15_CreateFcn(hObject, eventdata, handles)
167 % hObject handle to popupmenu15 (see GCBO)
168 % eventdata reserved - to be defined in a future version of MATLAB
169 % handles empty - handles not created until after all CreateFcns called
170 
171 % Hint: popupmenu controls usually have a white background on Windows.
172 % See ISPC and COMPUTER.
173 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
174  set(hObject,'BackgroundColor','white');
175 end
176 
177 
178 
179 function edit15_Callback(hObject, eventdata, handles)
180 % hObject handle to edit15 (see GCBO)
181 % eventdata reserved - to be defined in a future version of MATLAB
182 % handles structure with handles and user data (see GUIDATA)
183 
184 % Hints: get(hObject,'String') returns contents of edit15 as text
185 % str2double(get(hObject,'String')) returns contents of edit15 as a double
186 
187 
188 % --- Executes during object creation, after setting all properties.
189 function edit15_CreateFcn(hObject, eventdata, handles)
190 % hObject handle to edit15 (see GCBO)
191 % eventdata reserved - to be defined in a future version of MATLAB
192 % handles empty - handles not created until after all CreateFcns called
193 
194 % Hint: edit controls usually have a white background on Windows.
195 % See ISPC and COMPUTER.
196 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
197  set(hObject,'BackgroundColor','white');
198 end
199 
200 
201 
202 function edit11_Callback(hObject, eventdata, handles)
203 % hObject handle to edit11 (see GCBO)
204 % eventdata reserved - to be defined in a future version of MATLAB
205 % handles structure with handles and user data (see GUIDATA)
206 
207 % Hints: get(hObject,'String') returns contents of edit11 as text
208 % str2double(get(hObject,'String')) returns contents of edit11 as a double
209 
210 
211 % --- Executes during object creation, after setting all properties.
212 function edit11_CreateFcn(hObject, eventdata, handles)
213 % hObject handle to edit11 (see GCBO)
214 % eventdata reserved - to be defined in a future version of MATLAB
215 % handles empty - handles not created until after all CreateFcns called
216 
217 % Hint: edit controls usually have a white background on Windows.
218 % See ISPC and COMPUTER.
219 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
220  set(hObject,'BackgroundColor','white');
221 end
222 
223 
224 
225 function edit12_Callback(hObject, eventdata, handles)
226 % hObject handle to edit12 (see GCBO)
227 % eventdata reserved - to be defined in a future version of MATLAB
228 % handles structure with handles and user data (see GUIDATA)
229 
230 % Hints: get(hObject,'String') returns contents of edit12 as text
231 % str2double(get(hObject,'String')) returns contents of edit12 as a double
232 
233 
234 % --- Executes during object creation, after setting all properties.
235 function edit12_CreateFcn(hObject, eventdata, handles)
236 % hObject handle to edit12 (see GCBO)
237 % eventdata reserved - to be defined in a future version of MATLAB
238 % handles empty - handles not created until after all CreateFcns called
239 
240 % Hint: edit controls usually have a white background on Windows.
241 % See ISPC and COMPUTER.
242 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
243  set(hObject,'BackgroundColor','white');
244 end
245 
246 
247 % --- Executes on button press in checkbox7.
248 function checkbox7_Callback(hObject, eventdata, handles)
249 % hObject handle to checkbox7 (see GCBO)
250 % eventdata reserved - to be defined in a future version of MATLAB
251 % handles structure with handles and user data (see GUIDATA)
252 
253 % Hint: get(hObject,'Value') returns toggle state of checkbox7
254 
255 
256 % --- Executes on selection change in popupmenu14.
257 function popupmenu14_Callback(hObject, eventdata, handles)
258 % hObject handle to popupmenu14 (see GCBO)
259 % eventdata reserved - to be defined in a future version of MATLAB
260 % handles structure with handles and user data (see GUIDATA)
261 
262 % Hints: contents = cellstr(get(hObject,'String')) returns popupmenu14 contents as cell array
263 % contents{get(hObject,'Value')} returns selected item from popupmenu14
264 
265 
266 % --- Executes during object creation, after setting all properties.
267 function popupmenu14_CreateFcn(hObject, eventdata, handles)
268 % hObject handle to popupmenu14 (see GCBO)
269 % eventdata reserved - to be defined in a future version of MATLAB
270 % handles empty - handles not created until after all CreateFcns called
271 
272 % Hint: popupmenu controls usually have a white background on Windows.
273 % See ISPC and COMPUTER.
274 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
275  set(hObject,'BackgroundColor','white');
276 end
277 
278 
279 
280 function edit16_Callback(hObject, eventdata, handles)
281 % hObject handle to edit16 (see GCBO)
282 % eventdata reserved - to be defined in a future version of MATLAB
283 % handles structure with handles and user data (see GUIDATA)
284 
285 % Hints: get(hObject,'String') returns contents of edit16 as text
286 % str2double(get(hObject,'String')) returns contents of edit16 as a double
287 
288 
289 % --- Executes during object creation, after setting all properties.
290 function edit16_CreateFcn(hObject, eventdata, handles)
291 % hObject handle to edit16 (see GCBO)
292 % eventdata reserved - to be defined in a future version of MATLAB
293 % handles empty - handles not created until after all CreateFcns called
294 
295 % Hint: edit controls usually have a white background on Windows.
296 % See ISPC and COMPUTER.
297 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
298  set(hObject,'BackgroundColor','white');
299 end
300 %> @endcond
Property type_distr
Definition: vis_scatter1d.m:11
1D Scatterplot
Definition: vis_scatter1d.m:4
function gui_set_position(in hObject)
Analysis Session (AS) base class.
Definition: as.m:6
function irerrordlg(in errorstring, in dlgname)
Property idx_fea
Definition: vis_scatter1d.m:9