Alphabetical list Categories
qgarea Generalized line drawing
Help text:

qgarea(ptspec1, ptspec2, ...).
A PTSPEC is a cell array containing a sequence of commands from the following list:
       ABSDATA x y - Absolute data coordinates
       RELDATA dx dy - Relative data coordinates
       ABSPAPER x y - Absolute paper coordinates (in pt)
       RELPAPER dx dy - Relative data coordinates (in pt)
       ROTDATA xi eta - Rotate by atan2(eta, xi) in data space.
                                         (This affects subsequent relative positioning.)
       ROTPAPER phi - Rotate by phi radians. (This affects subsequent
                                         relative positioning.)
       RETRACT l - Retract preceding and following segments by L pt.
       RETRACT l1 l2 - Retract preceding and following segments by L1 and
                                         L2 pt respectively.

Note: The rather cumbersome syntax of qgarea makes qarea and qpatch more attractive for general usage. See also qgline.

Example:

qfigure('qgarea', 3, 3);

qplot([-pi:.1:pi],sin(-pi:.1:pi));

qpen none

qbrush r .5

qgarea({'absdata', 0, 0}, ...

        {'absdata', 0, 0, 'relpaper', 0, 36}, ...

        {'absdata', 1, sin(1), 'relpaper', 0, 36}, ...

        {'absdata', 1, sin(1)});

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