Arrows2D
2D arrows with optional colors, radii, labels, etc.
Fields fields
Required required
vectors
:Vector2D
Recommended recommended
origins
:Position2D
Optional optional
radii
:Radius
colors
:Color
labels
:Text
show_labels
:ShowLabels
draw_order
:DrawOrder
class_ids
:ClassId
Can be shown in can-be-shown-in
- Spatial2DView
- Spatial3DView (if logged under a projection)
- DataframeView
API reference links api-reference-links
Example example
Simple batch of 2D arrows 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,
),
)