vispy.visuals.collections.agg_path_collection module

Antigrain Geometry Path Collection

This collection provides antialiased and accurate paths with caps and joins. It is memory hungry (x8) and slow (x.25) so it is to be used sparingly, mainly for thick paths where quality is critical.

class vispy.visuals.collections.agg_path_collection.AggPathCollection(user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs)

Bases: vispy.visuals.collections.collection.Collection

Antigrain Geometry Path Collection

This collection provides antialiased and accurate paths with caps and joins. It is memory hungry (x8) and slow (x.25) so it is to be used sparingly, mainly for thick paths where quality is critical.

append(P, closed=False, itemsize=None, **kwargs)

Append a new set of vertices to the collection.

For kwargs argument, n is the number of vertices (local) or the number of item (shared)

Parameters
Pnp.array

Vertices positions of the path(s) to be added

closed: bool

Whether path(s) is/are closed

itemsize: int or None

Size of an individual path

capslist, array or 2-tuple

Path start /end cap

joinlist, array or float

path segment join

colorlist, array or 4-tuple

Path color

miter_limitlist, array or float

Miter limit for join

linewidthlist, array or float

Path linewidth

antialiaslist, array or float

Path antialias area

draw(mode='triangles')

Draw collection