IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_scatter2d.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref vis_scatter2d
4 %>
5 %>@image html Screenshot-uip_vis_scatter2d.png
6 %>
7 %> <b>Indexes of variables to plot</b> - see vis_scatter2d::idx_fea
8 %>
9 %> <b>Confidence ellipses</b> - see vis_scatter2d::confidences
10 %>
11 %> <b>Annotate observation names</b> - see vis_scatter2d::flag_text
12 %>
13 %> @sa vis_scatter2d
14 
15 %>@cond
16 function varargout = uip_vis_scatter2d(varargin)
17 % Begin initialization code - DO NOT EDIT
18 gui_Singleton = 1;
19 gui_State = struct('gui_Name', mfilename, ...
20  'gui_Singleton', gui_Singleton, ...
21  'gui_OpeningFcn', @uip_vis_scatter2d_OpeningFcn, ...
22  'gui_OutputFcn', @uip_vis_scatter2d_OutputFcn, ...
23  'gui_LayoutFcn', [] , ...
24  'gui_Callback', []);
25 if nargin && ischar(varargin{1})
26  gui_State.gui_Callback = str2func(varargin{1});
27 end
28 
29 if nargout
30  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
31 else
32  gui_mainfcn(gui_State, varargin{:});
33 end
34 % End initialization code - DO NOT EDIT
35 
36 
37 % --- Executes just before uip_vis_scatter2d is made visible.
38 function uip_vis_scatter2d_OpeningFcn(hObject, eventdata, handles, varargin)
39 handles.output.flag_ok = 0;
40 guidata(hObject, handles);
41 gui_set_position(hObject);
42 
43 
44 
45 % --- Outputs from this function are returned to the command clae.
46 function varargout = uip_vis_scatter2d_OutputFcn(hObject, eventdata, handles)
47 try
48  uiwait(handles.figure1);
49  handles = guidata(hObject);
50  varargout{1} = handles.output;
51  delete(gcf);
52 catch
53  output.flag_ok = 0;
54  output.params = {};
55  varargout{1} = output;
56 end;
57 
58 
59 
60 function editReg_Callback(hObject, eventdata, handles)
61 
62 % --- Executes during object creation, after setting all properties.
63 function editReg_CreateFcn(hObject, eventdata, handles)
64 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
65  set(hObject,'BackgroundColor','white');
66 end
67 
68 
69 
70 % --- Executes on button press in pushbuttonOK.
71 function pushbuttonOK_Callback(hObject, eventdata, handles)
72 % hObject handle to pushbuttonOK (see GCBO)
73 % eventdata reserved - to be defined in a future version of MATLAB
74 % handles structure with handles and user data (see GUIDATA)
75 try
76  handles.output.params = {...
77  'idx_fea', get(handles.edit_idx_fea, 'String'), ...
78  'confidences', mat2str(eval(get(handles.edit_confidences, 'String'))), ...
79  'textmode', int2str(get(handles.popupmenu_textmode, 'Value')-1) ...
80  };
81  handles.output.flag_ok = 1;
82  guidata(hObject, handles);
83  uiresume();
84 catch ME
85  irerrordlg(ME.message, 'Cannot continue');
86 
87 end;
88 
89 
90 function edit_idx_fea_Callback(hObject, eventdata, handles)
91 
92 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
93 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
94  set(hObject,'BackgroundColor','white');
95 end
96 
97 
98 function edit_confidences_Callback(hObject, eventdata, handles)
99 function edit_confidences_CreateFcn(hObject, eventdata, handles)
100 
101 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
102  set(hObject,'BackgroundColor','white');
103 end
104 
105 function checkbox_flag_text_Callback(hObject, eventdata, handles)
106 
107 function popupmenu_textmode_Callback(hObject, eventdata, handles)
108 
109 function popupmenu_textmode_CreateFcn(hObject, eventdata, handles)
110 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
111  set(hObject,'BackgroundColor','white');
112 end
113 %> @endcond
2D Scatterplot
Definition: vis_scatter2d.m:6
Property confidences
Definition: vis_scatter2d.m:14
Property idx_fea
=[1,2]
Definition: vis_scatter2d.m:12
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)