In R2013a, I used to be able to change the color of specific text entries in a legend using code such as:
hLegend = legend(legend_txt,... 'Location','BestOutside',... 'FontSize',14); % set color of legend that ever exceeds threshold to red so it stands out
hKids = get(hLegend,'Children'); hText = hKids(strcmp(get(hKids,'Type'),'text')); set(hText(flipud(mask_alert)),{'Color'},{'r'});
My legends have many entries and "mask_alert" was a logical mask indicating which specific legend text I wanted to change color. Ever since I upgraded to R2015b, this code no longer works. The 'Children' property is now empty.
Best Answer