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 onplot(x,y2);axis tightlegend('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
Best Answer