Alphabetical list Categories
qplegend Render legend element for patch
Help text:

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

Example:

qfigure('qplegend', 3, 3);

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

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

qpen none

qbrush b .5

qbars(xx, cos(xx), .1);

qplegend('Cosine');

qbrush r .5

qbars(xx, sin(xx), .1);

qplegend('Sine');

qshrink

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