Warning when using 'Box','off' in legend and the box of the legends keeps showing!
Show older comments
Does any one know why the following error is generated and the box of the legend is still showing?
x=0:0.1:2*pi;
y1=sin(x);
y2=cos(x);
plot(x,y1);
hold on
plot(x,y2);
axis tight
legend('sin','cos','Location','North','Box','off')
Warning: Ignoring extra legend entries.
> In /Applications/MATLAB_R2014b.app/toolbox/matlab/scribe/private/legendHGUsingMATLABClasses.p>set_children_and_strings at 649
In /Applications/MATLAB_R2014b.app/toolbox/matlab/scribe/private/legendHGUsingMATLABClasses.p>make_legend at 312
In /Applications/MATLAB_R2014b.app/toolbox/matlab/scribe/private/legendHGUsingMATLABClasses.p>legendHGUsingMATLABClasses at 241
In legend at 118
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!