legendPlot legend (only for line plots)
legend('show')legend('hide')legend('off')legend('toggle')legend(s1, s2, ..., sN)s1, s2, ..., sN, where N.N should not exceed the total number of lines.s1, s2, ..., sN are character vectors.off, execution of the next plot function will make the legend hidden (which is the default state).legend show, is not supported.