esc
Start typing to search the docs
Navigate Open

Arrows2D

2D arrows with optional colors, radii, labels, etc.

Fields

Required

Optional

Can be shown in

Example

Simple batch of 2D arrows

"""Log a batch of 2D arrows."""

import rerun as rr

rr.init("rerun_example_arrow2d", spawn=True)

rr.log(
    "arrows",
    rr.Arrows2D(
        origins=[[0.25, 0.0], [0.25, 0.0], [-0.1, -0.1]],
        vectors=[[1.0, 0.0], [0.0, -1.0], [-0.7, 0.7]],
        colors=[[255, 0, 0], [0, 255, 0], [127, 0, 255]],
        labels=["right", "up", "left-down"],
        radii=0.025,
    ),
)