esc
Start typing to search the docs
Navigate Open

StateTimelineView

⚠️ This type is unstable and may change significantly in a way that the data won't be backwards compatible. A view for displaying state transitions over time, for use with archetypes.StateChange.

Example

Use a blueprint to show a StateTimelineView.

# Use a blueprint to show a StateTimelineView.

import rerun as rr
import rerun.blueprint as rrb

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

rr.set_time("step", sequence=0)
rr.log("door", rr.StateChange(state="open"))

rr.set_time("step", sequence=1)
rr.log("door", rr.StateChange(state="closed"))

rr.set_time("step", sequence=2)
rr.log("door", rr.StateChange(state="open"))

# Create a state timeline view to display the state transitions.
blueprint = rrb.Blueprint(
    rrb.StateTimelineView(
        origin="/",
        name="State Transitions",
    ),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

Visualized archetypes