@@ -277,7 +277,7 @@ function init_graph_settings()
277277
278278 for j = 1 : 1 : length(available_settings )
279279 as = available_settings{j };
280- y_correction = 0.2 ;
280+ y_correction = 0.05 ;
281281 inner_panel_y = 1 - j * inner_panel_height + y_correction ;
282282
283283 texts(j , 1 ) = uicontrol(' Parent' , ui_graph_setttings_inner_panel , ' Style' , ' text' , ...
@@ -294,11 +294,13 @@ function init_graph_settings()
294294 set(fields(j , 1 ), ' Callback' , {@cb_analysis_settings_popup })
295295 elseif isequal(as{1 , 2 }, 2 ) % numerical
296296 set(fields(j , 1 ), ' Style' , ' edit' );
297+ set(fields(j , 1 ), ' Position' , [0.58 inner_panel_y + 0.03 0.40 0.04 ]);
297298 set(fields(j , 1 ), ' String' , as{1 , 3 }) % put default
298299 set(fields(j , 1 ), ' Callback' , {@cb_analysis_settings_popup })
299300 else % logical
300301 set(fields(j , 1 ), ' Style' , ' popup' );
301302 set(fields(j , 1 ), ' String' , {' true' , ' false' })
303+ set(fields(j , 1 ), ' FontWeight' , ' bold' )
302304 set(fields(j , 1 ), ' Callback' , {@cb_analysis_settings_popup })
303305 end
304306 end
@@ -339,7 +341,11 @@ function cb_analysis_settings_popup(~, ~)
339341 if rem(j , 2 ) == 0
340342 correlation_rules_array{k } = [' Analysis' dc{1 } ' .' childs(j ).String];
341343 else
342- correlation_rules_array{k } = childs(j ).String{childs(j ).Value};
344+ if childs(j ).Value >= 1
345+ correlation_rules_array{k } = childs(j ).String{childs(j ).Value};
346+ else
347+ correlation_rules_array{k } = childs(j ).String;
348+ end
343349 end
344350 end
345351 analysis = ga .getClass();
@@ -608,7 +614,11 @@ function update_matrix()
608614 if rem(j , 2 ) == 0
609615 correlation_rules_array{k } = [' Analysis' dc{1 } ' .' childs(j ).String];
610616 else
611- correlation_rules_array{k } = childs(j ).String{childs(j ).Value};
617+ if childs(j ).Value >= 1
618+ correlation_rules_array{k } = childs(j ).String{childs(j ).Value};
619+ else
620+ correlation_rules_array{k } = childs(j ).String;
621+ end
612622 end
613623 end
614624
0 commit comments