Skip to content

Commit

Permalink
Bug line 1792 solved: clickableMultiLegend now working with R2024a in:
Browse files Browse the repository at this point in the history
%% Example 2 of use of option typespm passed as struct with groups.
  • Loading branch information
DomenicoPerrottaJRC committed Apr 18, 2024
1 parent ccc5dcd commit fce2896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toolbox/graphics/spmplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,8 @@
set(hlegend.EntryContainer.NodeChildren(iii), 'Color',hl(iii).Color);
else
%This would do the same, but change the string and affect the functioning of clickableMultiLegend
hlegend.String{iii} = ['\color[rgb]{' num2str(hlColors(iii,:)) '} ' hlegend.String{iii}];
set(hlegend.EntryContainer.NodeChildren(iii), 'FontColor',hl(iii).Color);
%hlegend.String{iii} = ['\color[rgb]{' num2str(hlColors(iii,:)) '} ' hlegend.String{iii}];
end
end
end
Expand Down

0 comments on commit fce2896

Please sign in to comment.