-
Notifications
You must be signed in to change notification settings - Fork 4
/
plotsaveddata.m
341 lines (227 loc) · 17.2 KB
/
plotsaveddata.m
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
% plotsaveddata.m
% Plots saved data in the data plotter tab.
getplotrange;
if ((plotdata_sp1 == 1) && (plotdata_sp2 == 0)) || ((plotdata_sp1 == 1) && (plotdata_sp2 == 1))
for ii = 1:1:length(stored_index_sp1)
filenum_sp1(ii) = str2num(cell2mat((lfc_sp1{3}(stored_index_sp1(ii)))));
variable(ii) = str2num(cell2mat((lfc_sp1{4}(stored_index_sp1(ii)))));
NOD_sp1(ii) = str2num(cell2mat((lfc_sp1{22}(stored_index_sp1(ii)))));
Nh_sp1(ii) = str2num(cell2mat((lfc_sp1{10}(stored_index_sp1(ii)))));
Nv_sp1(ii) = str2num(cell2mat((lfc_sp1{11}(stored_index_sp1(ii)))));
N_pxsum_sp1(ii) = str2num(cell2mat((lfc_sp1{23}(stored_index_sp1(ii)))));
Th_sp1(ii) = str2num(cell2mat((lfc_sp1{24}(stored_index_sp1(ii)))));
Tv_sp1(ii) = str2num(cell2mat((lfc_sp1{25}(stored_index_sp1(ii)))));
PSD_sp1(ii) = str2num(cell2mat((lfc_sp1{26}(stored_index_sp1(ii)))));
OD_sp1(ii) = str2num(cell2mat((lfc_sp1{5}(stored_index_sp1(ii)))));
npk_sp1(ii) = str2num(cell2mat((lfc_sp1{27}(stored_index_sp1(ii)))));
sigma_h_sp1(ii) = str2num(cell2mat((lfc_sp1{6}(stored_index_sp1(ii)))));
sigma_v_sp1(ii) = str2num(cell2mat((lfc_sp1{7}(stored_index_sp1(ii)))));
center_h_sp1(ii) = str2num(cell2mat((lfc_sp1{8}(stored_index_sp1(ii)))));
center_v_sp1(ii) = str2num(cell2mat((lfc_sp1{9}(stored_index_sp1(ii)))));
end
end
if ((plotdata_sp1 == 0) && (plotdata_sp2 == 1)) || ((plotdata_sp1 == 1) && (plotdata_sp2 == 1))
for ii = 1:1:length(stored_index_sp2)
filenum_sp2(ii) = str2num(cell2mat((lfc_sp2{3}(stored_index_sp2(ii)))));
variable(ii) = str2num(cell2mat((lfc_sp2{4}(stored_index_sp2(ii)))));
NOD_sp2(ii) = str2num(cell2mat((lfc_sp2{22}(stored_index_sp2(ii)))));
Nh_sp2(ii) = str2num(cell2mat((lfc_sp2{10}(stored_index_sp2(ii)))));
Nv_sp2(ii) = str2num(cell2mat((lfc_sp2{11}(stored_index_sp2(ii)))));
N_pxsum_sp2(ii) = str2num(cell2mat((lfc_sp2{23}(stored_index_sp2(ii)))));
Th_sp2(ii) = str2num(cell2mat((lfc_sp2{24}(stored_index_sp2(ii)))));
Tv_sp2(ii) = str2num(cell2mat((lfc_sp2{25}(stored_index_sp2(ii)))));
PSD_sp2(ii) = str2num(cell2mat((lfc_sp2{26}(stored_index_sp2(ii)))));
OD_sp2(ii) = str2num(cell2mat((lfc_sp2{5}(stored_index_sp2(ii)))));
npk_sp2(ii) = str2num(cell2mat((lfc_sp2{27}(stored_index_sp2(ii)))));
sigma_h_sp2(ii) = str2num(cell2mat((lfc_sp2{6}(stored_index_sp2(ii)))));
sigma_v_sp2(ii) = str2num(cell2mat((lfc_sp2{7}(stored_index_sp2(ii)))));
center_h_sp2(ii) = str2num(cell2mat((lfc_sp2{8}(stored_index_sp2(ii)))));
center_v_sp2(ii) = str2num(cell2mat((lfc_sp2{9}(stored_index_sp2(ii)))));
end
end
%% Plot 1
axes(handles.dataplot1);
if menuvalue_x1 == 2
x1_label = plotvariablename;
save('maindata','x1_label','-append');
end
if menuvalue_y1 == 2
y1_label = plotvariablename;
save('maindata','y1_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x1_points_sp1 = setplotvariable_saveddata(menuvalue_x1,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y1_points_sp1 = setplotvariable_saveddata(menuvalue_y1,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x1_points_sp1,y1_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x1_points_sp2 = setplotvariable_saveddata(menuvalue_x1,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y1_points_sp2 = setplotvariable_saveddata(menuvalue_y1,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x1_points_sp2,y1_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x1_points_sp1 = setplotvariable_saveddata(menuvalue_x1,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y1_points_sp1 = setplotvariable_saveddata(menuvalue_y1,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x1_points_sp2 = setplotvariable_saveddata(menuvalue_x1,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y1_points_sp2 = setplotvariable_saveddata(menuvalue_y1,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x1_points_sp1,y1_points_sp1,x1_points_sp2,y1_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x1_label)
ylabel(y1_label)
%% Plot 2
axes(handles.dataplot2);
if menuvalue_x2 == 2
x2_label = plotvariablename;
save('maindata','x2_label','-append');
end
if menuvalue_y2 == 2
y2_label = plotvariablename;
save('maindata','y2_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x2_points_sp1 = setplotvariable_saveddata(menuvalue_x2,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y2_points_sp1 = setplotvariable_saveddata(menuvalue_y2,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x2_points_sp1,y2_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x2_points_sp2 = setplotvariable_saveddata(menuvalue_x2,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y2_points_sp2 = setplotvariable_saveddata(menuvalue_y2,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x1_points_sp2,y1_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x2_points_sp1 = setplotvariable_saveddata(menuvalue_x2,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y2_points_sp1 = setplotvariable_saveddata(menuvalue_y2,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x2_points_sp2 = setplotvariable_saveddata(menuvalue_x2,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y2_points_sp2 = setplotvariable_saveddata(menuvalue_y2,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x2_points_sp1,y2_points_sp1,x2_points_sp2,y2_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x2_label)
ylabel(y2_label)
%% Plot 3
axes(handles.dataplot3);
if menuvalue_x3 == 2
x3_label = plotvariablename;
save('maindata','x3_label','-append');
end
if menuvalue_y3 == 2
y3_label = plotvariablename;
save('maindata','y3_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x3_points_sp1 = setplotvariable_saveddata(menuvalue_x3,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y3_points_sp1 = setplotvariable_saveddata(menuvalue_y3,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x3_points_sp1,y3_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x3_points_sp2 = setplotvariable_saveddata(menuvalue_x3,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y3_points_sp2 = setplotvariable_saveddata(menuvalue_y3,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x3_points_sp2,y3_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x3_points_sp1 = setplotvariable_saveddata(menuvalue_x3,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y3_points_sp1 = setplotvariable_saveddata(menuvalue_y3,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x3_points_sp2 = setplotvariable_saveddata(menuvalue_x3,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y3_points_sp2 = setplotvariable_saveddata(menuvalue_y3,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x3_points_sp1,y3_points_sp1,x3_points_sp2,y3_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x3_label)
ylabel(y3_label)
%% Plot 4
axes(handles.dataplot4);
if menuvalue_x4 == 2
x4_label = plotvariablename;
save('maindata','x4_label','-append');
end
if menuvalue_y4 == 2
y4_label = plotvariablename;
save('maindata','y4_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x4_points_sp1 = setplotvariable_saveddata(menuvalue_x4,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y4_points_sp1 = setplotvariable_saveddata(menuvalue_y4,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x4_points_sp1,y4_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x4_points_sp2 = setplotvariable_saveddata(menuvalue_x4,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y4_points_sp2 = setplotvariable_saveddata(menuvalue_y4,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x4_points_sp2,y4_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x4_points_sp1 = setplotvariable_saveddata(menuvalue_x4,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y4_points_sp1 = setplotvariable_saveddata(menuvalue_y4,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x4_points_sp2 = setplotvariable_saveddata(menuvalue_x4,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y4_points_sp2 = setplotvariable_saveddata(menuvalue_y4,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x4_points_sp1,y4_points_sp1,x4_points_sp2,y4_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x4_label)
ylabel(y4_label)
%% Plot 5
axes(handles.dataplot5);
if menuvalue_x5 == 2
x5_label = plotvariablename;
save('maindata','x5_label','-append');
end
if menuvalue_y5 == 2
y5_label = plotvariablename;
save('maindata','y5_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x5_points_sp1 = setplotvariable_saveddata(menuvalue_x5,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y5_points_sp1 = setplotvariable_saveddata(menuvalue_y5,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x5_points_sp1,y5_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x5_points_sp2 = setplotvariable_saveddata(menuvalue_x5,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y5_points_sp2 = setplotvariable_saveddata(menuvalue_y5,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x5_points_sp2,y5_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x5_points_sp1 = setplotvariable_saveddata(menuvalue_x5,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y5_points_sp1 = setplotvariable_saveddata(menuvalue_y5,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x5_points_sp2 = setplotvariable_saveddata(menuvalue_x5,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y5_points_sp2 = setplotvariable_saveddata(menuvalue_y5,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x5_points_sp1,y5_points_sp1,x5_points_sp2,y5_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x5_label)
ylabel(y5_label)
%% Plot 6
axes(handles.dataplot6);
if menuvalue_x6 == 2
x6_label = plotvariablename;
save('maindata','x6_label','-append');
end
if menuvalue_y6 == 2
y6_label = plotvariablename;
save('maindata','y6_label','-append');
end
if (plotdata_sp1 == 1) && (plotdata_sp2 == 0)
x6_points_sp1 = setplotvariable_saveddata(menuvalue_x6,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y6_points_sp1 = setplotvariable_saveddata(menuvalue_y6,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
plot(x6_points_sp1,y6_points_sp1,'s')
elseif (plotdata_sp1 == 0) && (plotdata_sp2 == 1)
x6_points_sp2 = setplotvariable_saveddata(menuvalue_x6,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y6_points_sp2 = setplotvariable_saveddata(menuvalue_y6,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
plot(x6_points_sp2,y6_points_sp2,'o','color',[217 83 25]/255)
elseif (plotdata_sp1 == 1) && (plotdata_sp2 == 1)
x6_points_sp1 = setplotvariable_saveddata(menuvalue_x6,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
y6_points_sp1 = setplotvariable_saveddata(menuvalue_y6,filenum_sp1,variable,NOD_sp1,Nh_sp1,Nv_sp1,N_pxsum_sp1,Th_sp1,Tv_sp1,PSD_sp1,OD_sp1,npk_sp1,sigma_h_sp1,sigma_v_sp1,center_h_sp1,center_v_sp1);
x6_points_sp2 = setplotvariable_saveddata(menuvalue_x6,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
y6_points_sp2 = setplotvariable_saveddata(menuvalue_y6,filenum_sp2,variable,NOD_sp2,Nh_sp2,Nv_sp2,N_pxsum_sp2,Th_sp2,Tv_sp2,PSD_sp2,OD_sp2,npk_sp2,sigma_h_sp2,sigma_v_sp2,center_h_sp2,center_v_sp2);
[hAx,hLine1,hLine2] = plotyy(x6_points_sp1,y6_points_sp1,x6_points_sp2,y6_points_sp2);
hLine1.Marker = 's';
hLine2.Marker = 'o';
hLine1.LineStyle = 'none';
hLine2.LineStyle = 'none';
end
xlabel(x6_label)
ylabel(y6_label)