With 2017a, my legend entries are showing up as 'greyed out' when the plot object is set with visibility off. This is not the behavior for R2015b (and previous releases).
This example code shows the legend differently in R12015b vs. R2017a. I want the R2015b behavior. I frequently use this approach when I want the legend to be in one order, but the plotting order to be different.
%%Example of greyed out legend.
% allows order of legend to be different from plotting order
% 2015b: all legend entries are normal color
% 2017a: 1st legend entry has gray text and the plot line/symbol is greyed
figurelegstr = {};hold all;plot(0,0,'ro-','Visible','off')legstr(end+1) = {'Line'};plot(1:100,randn(1,100),'ks-')legstr(end+1) = {'Random'};plot([1 100],[0.5 0.5],'ro-')lh=legend(legstr);
I'd prefer a solution that doesn't require rewriting 100's of lines of existing code, like a property setting in the legend command.
Thanks
Best Answer