@@ -332,7 +332,7 @@ function drawCortex(obj, anatomy, plot_axis, view_position, left_color, right_co
332332 edges = [edges , obj .drawEdges(ROI_final_positions , plot_axis )];
333333 else
334334 obj.mesh_alpha = 1 ;
335- [ROI_final_positions , ROI_colors ] = obj .getROIPositions(view_position , nla .gfx.BrainColorMode.COLOR_ROIS);
335+ [ROI_final_positions , ROI_colors ] = obj .getROIPositions(view_position , nla .gfx.BrainColorMode.COLOR_ROIS, obj .mapColorsToLimits( obj .ROI_values, 0 ) );
336336 if ~isequal(color_mode , nla .gfx.BrainColorMode.NONE) && obj .surface_parcels && ~islogical(obj .network_atlas.parcels) && isequal(size(obj .network_atlas.parcels.ctx_l,1 ), size(obj .network_atlas.anat.hemi_l.nodes, 1 )) && isequal(size(obj .network_atlas.parcels.ctx_r, 1 ), size(obj .network_atlas.anat.hemi_r.nodes, 1 ))
337337 ROI_color_map = [0.5 0.5 0.5 ; ROI_colors ];
338338 obj .drawCortex(obj .network_atlas.anat, plot_axis , view_position , ROI_color_map(obj .network_atlas.parcels.ctx_l + 1 , : ), ROI_color_map(obj .network_atlas.parcels.ctx_r + 1 , : ));
@@ -347,7 +347,8 @@ function drawCortex(obj, anatomy, plot_axis, view_position, left_color, right_co
347347 end
348348 end
349349
350- if (~isfield(obj .edge_test_options, " show_ROI_centroids" )) || (isfield(obj .edge_test_options, " show_ROI_centroids" ) && isequal(obj .edge_test_options.show_ROI_centroids, true ))
350+ % if (~isfield(obj.edge_test_options, "show_ROI_centroids")) || (isfield(obj.edge_test_options, "show_ROI_centroids") && isequal(obj.edge_test_options.show_ROI_centroids, true))
351+ if obj .network_test_options.show_ROI_centroids
351352 obj .drawROISpheres(ROI_final_positions , plot_axis , connectivity_map );
352353 end
353354
0 commit comments