Commit e1740774 authored by Simone Liuzzo's avatar Simone Liuzzo

added checkbox to recompute figures

parent 59db3541
No preview for this file type
......@@ -22,7 +22,7 @@ function varargout = qempanel2(varargin)
% Edit the above text to modify the response to help qempanel2
% Last Modified by GUIDE v2.5 06-Feb-2019 14:06:25
% Last Modified by GUIDE v2.5 08-Feb-2019 10:08:30
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
......@@ -503,7 +503,7 @@ corfile=fullfile(qemres.datadir, 'magcor.dat');
[fname,fpath]=uigetfile('*.dat','Load correction:',corfile);
if ischar(fname)
% qemb(2).cor(:,2)=-qemreadcor(fullfile(fpath,fname));
qemb(2).cor(:,2)=load_correction(fullfile(fpath,fname),qemres.qpcode,qemres.opticsdir);
qemb(2).cor(:,2)=ebs.load_correction(fullfile(fpath,fname),qemres.opticsdir);
set(handles.qemdata.cordef,'Enable','On');
qemb(2)=qempaneldisp(qemres,semres,qemb(2),qemb(1),handles);
end
......@@ -968,3 +968,19 @@ function NSubSets_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in largefigures.
function largefigures_Callback(hObject, eventdata, handles)
% hObject handle to largefigures (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of largefigures
global qemres qemb semres
waitfor(set(handles.statustext,'String','figures are being redrawn'));
qempaneldisp(qemres,semres,qemb(2),qemb(1),handles);
set(handles.statustext,'String','new figures done');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment