-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinitial_resetall.m
More file actions
128 lines (99 loc) · 3.31 KB
/
initial_resetall.m
File metadata and controls
128 lines (99 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
% Reset to initial condition befor starting GUI
function initial_resetall(handles)
global gsettings
%clear axes1
colormap('default')
axes(handles.axes1);
cla(handles.axes1);
set(handles.axes1,'Visible','off','XScale','Linear','YScale','Linear')
set(handles.xlog,'State','off','Enable','off')
set(handles.ylog,'State','off','Enable','off')
set(handles.xaxislog_m,'Checked','off')
set(handles.yaxislog_m,'Checked','off')
%initiate grid
set(handles.axes1,'Xgrid','off','Ygrid','off','Zgrid','off')
set(handles.grid_m,'Checked','off')
axis auto
legend('off')
xlabel('')
ylabel('')
title('')
set(handles.yminedit,'String','')
set(handles.ymaxedit,'String','')
set(handles.xminedit,'String','')
set(handles.xmaxedit,'String','')
% off theory panel
set(handles.theorypanel,'Visible','off')
set(handles.backpushbutton,'Visible','off')
% set(handles.axes1,'XScale','linear','YScale','linear')
% % % off the log option
% set(handles.xlog,'Value',0,'Visible','on')
% set(handles.ylog,'Value',0,'Visible','on')
% off the marker type legend
set(handles.legendpanel,'Visible','off')
%set(handles.legendtable,'Visible','off')
% off the marker color legend
set(handles.legendpanel2,'Visible','off')
%set(handles.legendtable2,'Visible','off')
% off the marker size legend
set(handles.legendpanel3,'Visible','off')
%set(handles.mintext2,'Visible','off')
%set(handles.maxtext2,'Visible','off')
%set(handles.minedit2,'Visible','off')
%set(handles.maxedit2,'Visible','off')
%set(handles.legendtext2,'Visible','off')
% off the colorbar range legend
set(handles.rangepanel,'Visible','off')
%set(handles.mintext,'Visible','off')
%set(handles.maxtext,'Visible','off')
%set(handles.minedit,'Visible','off')
%set(handles.maxedit,'Visible','off')
% off refine button
% set(handles.refinebutton,'Visible','off')
% off the plot button
set(handles.plotbutton,'Visible','off')
% off the axis panel
set(handles.uipanel3,'Visible','off')
% off original plot panel
set(handles.uipanel1,'Visible','off')
% off the apply changed button
% set(handles.applychangebutton,'Visible','off')
% off the tracer cursor
set(handles.selectpoint,'Enable','off','State','off')
% off table panel
set(handles.uipanel2,'Title','Parameters Included','Visible','off')
% set enable of uitable2
% set(handles.uitable2,'Enable','on')
% set refine checkbox and real-time refinement checkbox
% set(handles.checkboxrefine,'Value',0,'Enable','on')
% set(handles.realtimecheckbox,'Value',0,'Enable','off')
% off the choosepanel
set(handles.choosepanel,'Visible','off')
% off the tools menu
set(handles.tools_menu,'Enable','off')
% off the View Menu
set(handles.view,'Enable','off')
set(handles.axes2,'Visible','on')
axes(handles.axes2)
axis off
box off
% Read General settings
general_settings(0,handles)
% Check for update when the program start
[needupdate, local_ver, server_ver] = gui_checkupdate(gsettings);
addmsg = {['Version: ', local_ver]};
switch needupdate
case 1
addmsg = [addmsg; {' '; ['New Version Available: ', server_ver]}];
case -1
addmsg = [addmsg; {' '; 'Unable to check for update!'}];
end %switch (needupdate)
try
% im = imread('http://www.clarkson.edu/identity/images/formats/engineering_green.jpg');
% imshow(im,'Parent',handles.axes2)
text(0,1000,[gsettings.initial_msg; addmsg])
catch err
cla
disp(err)
set(handles.axes2,'Visible','off')
end %try