Skip to content

Commit c90bbca

Browse files
committed
Fix BrainPlot bug for precalc, Fix issue where net result GUI is too large to fit on laptop display
1 parent 21cc0bc commit c90bbca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

+nla/+gfx/+brain/BrainPlot.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function setROIandConnectivity(obj)
185185
scale_max = str2double(varargin{2});
186186
end
187187

188-
color_rows = size(obj.color_map);
188+
color_rows = size(obj.color_map,1);
189189
color_map_positive = obj.color_map(1:(color_rows/2), :);
190190
color_map_negative = obj.color_map(((color_rows/2) + 1):end, :);
191191

@@ -501,7 +501,7 @@ function setDefaults(obj, ~, ~, upper_limit_box, lower_limit_box)
501501
end
502502

503503
function value = get.functional_connectivity_exists(obj)
504-
value = isfield(obj.edge_test_options, "func_conn");
504+
value = isfield(obj.edge_test_options, "func_conn") && (obj.edge_test_options.func_conn ~= 0);
505505
end
506506

507507
function value = get.color_functional_connectivity(obj)
480 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)