Alphabetical list Categories
qoverline Draw a line above data with a text above it
Help text:

qoverline(xx, y, text), where xx is a 2-vector and y a scalar, draws a horizontal line just above (xx(1), y) to (xx(2), y) and places the given text over it.
qoverline(xx, yy, text), where both xx and yy are 2-vectors, draws the line just above the larger yy value and extends a vertical line down to the smaller yy value.
The whole thing is displaced by a distance qoverlinedist from the data, and the text placement uses the absolute value of qtextdist.
If qoverlinemin is non-zero, a vertical line is drawn on both ends.
qoverline(xx, y) or qoverline(xx, yy) is permitted: no text is drawn.

Example:

qfigure('qoverline', 3, 3);

xx = [1 2];

yy = [3 4];

dy = [.5 .75];

qbars(xx, yy, .5);

qerrorbar(xx, yy, dy);

qoverline(xx, max(yy+dy), '*');

xx = [3.5 4.5];

qbars(xx, yy, .5);

qerrorbar(xx, yy, dy);

qoverline(xx, yy+dy, '+');

qshrink

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