Alphabetical list Categories
qlegend Render legend element for plotted line
Help text:

qlegend(str) renders a sample of the most recently plotted line at the location set by qlegopt and writes the given string next to it.
See also qmlegend and qplegend.

Example:

qfigure('qlegend', 3, 3);

qlegopt('x', 2*pi, 'y', 1, 'dx', 10);

xx=[0:.1:2*pi];

qpen b

qplot(xx, cos(xx));

qlegend('Cosine');

qpen r

qplot(xx, sin(xx));

qlegend('Sine');

qshrink

QPlot Documentation — (C) Daniel Wagenaar, 2014–2019