IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_scatter3d.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for vis_scatter3d (3D Scatter Plot)
4 %> @image html Screenshot-uip_vis_scatter3d.png
5 %>
6 %> <b>Indexes of variables to plot</b> - see vis_scatter3d::idx_fea
7 %>
8 %> <b>Confidence ellipses</b> - see vis_scatter3d::confidences
9 %>
10 %> <b>Text annotations</b> - see vis_scatter3d::textmode
11 %>
12 %> @sa vis_scatter3d
13 
14 %>@cond
15 function varargout = uip_vis_scatter3d(varargin)
16 
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_scatter3d_OpeningFcn, ...
22  'gui_OutputFcn', @uip_vis_scatter3d_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_scatter3d is made visible.
38 function uip_vis_scatter3d_OpeningFcn(hObject, eventdata, handles, varargin)
39 handles.output.flag_ok = 0;
40 guidata(hObject, handles);
41 gui_set_position(hObject);
42 
43 
44 % --- Outputs from this function are returned to the command clae.
45 function varargout = uip_vis_scatter3d_OutputFcn(hObject, eventdata, handles)
46 try
47  uiwait(handles.figure1);
48  handles = guidata(hObject);
49  varargout{1} = handles.output;
50  delete(gcf);
51 catch
52  output.flag_ok = 0;
53  output.params = {};
54  varargout{1} = output;
55 end;
56 
57 % --- Executes on button press in pushbuttonOK.
58 function pushbuttonOK_Callback(hObject, eventdata, handles)
59 try
60  handles.output.params = {...
61  'idx_fea', get(handles.edit_idx_fea, 'String'), ...
62  'confidences', mat2str(eval(get(handles.edit_confidences, 'String'))), ...
63  'textmode', int2str(get(handles.popupmenu_textmode, 'Value')-1) ...
64  };
65  handles.output.flag_ok = 1;
66  guidata(hObject, handles);
67  uiresume();
68 catch ME
69  irerrordlg(ME.message, 'Cannot continue');
70 
71 end;
72 
73 function edit_idx_fea_Callback(hObject, eventdata, handles)
74 
75 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
76 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
77  set(hObject,'BackgroundColor','white');
78 end
79 
80 function edit_confidences_Callback(hObject, eventdata, handles)
81 
82 function edit_confidences_CreateFcn(hObject, eventdata, handles)
83 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
84  set(hObject,'BackgroundColor','white');
85 end
86 
87 function checkbox_flag_text_Callback(hObject, eventdata, handles)
88 
89 function popupmenu_textmode_Callback(hObject, eventdata, handles)
90 
91 function popupmenu_textmode_CreateFcn(hObject, eventdata, handles)
92 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
93  set(hObject,'BackgroundColor','white');
94 end
95 %> @endcond
Property textmode
Definition: vis_scatter3d.m:16
Property confidences
Definition: vis_scatter3d.m:13
Property idx_fea
=[1, 2, 3] Index of features to be uses as coordinates. Must be a 3-element vector.
Definition: vis_scatter3d.m:9
function gui_set_position(in hObject)
3D Scatterplot
Definition: vis_scatter3d.m:3
function irerrordlg(in errorstring, in dlgname)