3 %> @brief Properties Window used by @ref uip_vis_loadings.m and @ref uip_vis_cv.m
4 %> @image html Screenshot-uip_vis_loadings.png
6 %> @attention Although it does not have a corresponding
block,
this file is used by uip_vis_cv.m and uip_vis_loadings.m
21 function varargout = uip_vis_grades(varargin)
22 % Last Modified by GUIDE v2.5 18-Feb-2012 18:03:12
24 % Begin initialization code - DO NOT EDIT
26 gui_State =
struct(
'gui_Name', mfilename, ...
27 'gui_Singleton', gui_Singleton, ...
28 'gui_OpeningFcn', @uip_vis_grades_OpeningFcn, ...
29 'gui_OutputFcn', @uip_vis_grades_OutputFcn, ...
30 'gui_LayoutFcn', [] , ...
32 if nargin && ischar(varargin{1})
33 gui_State.gui_Callback = str2func(varargin{1});
37 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
39 gui_mainfcn(gui_State, varargin{:});
41 % End initialization code - DO NOT EDIT
44 % --- Executes just before uip_vis_grades is made visible.
45 function uip_vis_grades_OpeningFcn(hObject, eventdata, handles, varargin)
46 handles.output.flag_ok = 0;
47 guidata(hObject, handles);
51 % --- Outputs from this function are returned to the command clae.
52 function varargout = uip_vis_grades_OutputFcn(hObject, eventdata, handles)
54 uiwait(handles.figure1);
55 handles = guidata(hObject);
56 varargout{1} = handles.output;
61 varargout{1} = output;
65 %############################################
68 function refresh(handles)
73 %
############################################
74 %############################################
76 % --- Executes on button press in pushbuttonOK.
77 function pushbuttonOK_Callback(hObject, eventdata, handles)
90 flag_bmtable = get(handles.radiobutton_pl, 'Value') > 0;
92 if flag_bmtable && ~flag_pd
93 irerror('Peak detector must be provided in order to plot "Peak Location Plots"!');
96 handles.output.params = {...
97 'flag_abs', int2str(
get(handles.checkbox_flag_abs,
'Value')), ...
98 'flag_trace_minalt', int2str(
get(handles.checkbox_flag_trace_minalt,
'Value')), ...
99 'flag_envelope', int2str(
get(handles.checkbox_flag_envelope,
'Value')), ...
100 'data_hint', sdata2, ...
101 'peakdetector', spd, ...
102 'flag_bmtable', int2str(flag_bmtable), ...
104 handles.output.flag_ok = 1;
105 guidata(hObject, handles);
112 function checkbox_flag_abs_Callback(hObject, eventdata, handles)
114 % --- Executes on selection change in popupmenuDataHint.
115 function popupmenuDataHint_Callback(hObject, eventdata, handles)
117 % --- Executes during
object creation, after setting all properties.
118 function popupmenuDataHint_CreateFcn(hObject, eventdata, handles)
119 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
120 set(hObject,'BackgroundColor','white');
123 % --- Executes on selection change in popupmenuPeakdetector.
124 function popupmenuPeakdetector_Callback(hObject, eventdata, handles)
126 % --- Executes during
object creation, after setting all properties.
127 function popupmenuPeakdetector_CreateFcn(hObject, eventdata, handles)
128 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
129 set(hObject,'BackgroundColor','white');
132 function checkbox_flag_envelope_Callback(hObject, eventdata, handles)
134 function radiobutton_curves_Callback(hObject, eventdata, handles)
135 if get(hObject, 'Value') > 0
136 set(handles.radiobutton_pl, 'Value', 0);
139 function radiobutton_pl_Callback(hObject, eventdata, handles)
140 if get(hObject, 'Value') > 0
141 set(handles.radiobutton_curves, 'Value', 0);
144 function checkbox_flag_trace_minalt_Callback(hObject, eventdata, handles)
Property flag_trace_minalt
Property flag_abs
=0. Whether to take the abs() of the of the loadings
function listbox_get_selected_1stname(in h_listbox)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
Visualization - Loadings plots or Peak Location plots for loadings vectors.
function gui_set_position(in hObject)
Property data_hint
(optional) Hint dataset. Used to plot a black dashed thin spectrum line on the background ...
Analysis Session (AS) base class.
function irerrordlg(in errorstring, in dlgname)
Property peakdetector
=[]. Peak detector to mark peaks in the Loadings and Peak Location plots