Ask Your Question

Revision history [back]

This primitive class gets used when the arrow2d function is called with a path keyword argument, so you should call that function instead of trying to use the class directly.

Alternatively: p.add_primitive(a)

This primitive class gets used when the arrow2d function is called with a path keyword argument, so you should call that function instead of trying to use the class directly.

Alternatively: The p.add_primitive(a)arrow2d documentation refers to the bezier_path documentation for how to specify the path argument. Example:

sage: parametric_pts = [(2*cos(-t), sin(-t)) for t in srange(0, 2*pi, step=0.01)]
sage: arrow2d(path=[[p] for p in parametric_pts])

parametric arrow