swplot.add(hAdd) adds a graphical object to the active swplot figure to
enable continuous rotation with the mouse. The function adds the
graphical objects to as a children to the hgtransform.
swplot.add(hAdd,hFigure) adds the graphical objects to the figure of
the figure handle
- Either vector of the handles of the graphical objects, or
struct with number of elements with a
handlefield each containing a graphical object handle. The struct can contain any subset of the following fields as well:
nameDefault value is
'general'if not given. The name identifies groups of objects.
textText that is shown in the tooltip when clicking on the object.
positionPosition of the object, see swplot.plot for details.
labelLabel that is shown in the legend.
legendType of legend, see swplot.legend for details.
typeType of graphical object, see swplot.plot.
dataArbitrary data assigned to the object.
- The handle of the figure or number in the figure title. The
default value is the active swplot figure if
hFigureis not given or empty matrix.