def addpoints(x, y, z=None, size=0, name=None): '''Update existing plot by adding points of given coordinates Arguments: x -- dataset of x coords y -- dataset of y coords z -- optional dataset of z coords size -- integer size or dataset of sizes name -- name of plot view to use (if None, use default name) ''' if name is None: name = _PVNAME size = _core.asarray(size) if z is None: _plot_updatepoints2d(name, x, y, size) else: _plot_updatepoints3d(name, x, y, z, size)
def points(x, y=None, z=None, size=0, name=None): '''Plot points with given coordinates. If y is missing then x must contain a dataset of coordinate pairs or a list of such datasets Arguments: x -- dataset of x coords or coord pairs y -- optional dataset of y coords z -- optional dataset of z coords size -- integer size or dataset of sizes name -- name of plot view to use (if None, use default name) ''' if name is None: name = _PVNAME size = _core.asarray(size) if z is None: if y is None: _plot_points2d(name, _toList(x), size) else: _plot_points2d(name, x, y, size) else: _plot_points3d(name, x, y, z, size)