Define the style properties for a line series in a chart.

This archetype only provides styling information and should be logged as timeless when possible. The underlying data needs to be logged to the same entity-path using the Scalar archetype.


Optional: Color, StrokeWidth, Name


Series Line

"""Log a scalar over time.""" from math import cos, sin, tau import rerun as rr rr.init("rerun_example_series_line_style", spawn=True) # Set up plot styling: # They are logged timeless as they don't change over time and apply to all timelines. # Log two lines series under a shared root so that they show in the same plot by default. rr.log("trig/sin", rr.SeriesLine(color=[255, 0, 0], name="sin(0.01t)", width=2), timeless=True) rr.log("trig/cos", rr.SeriesLine(color=[0, 255, 0], name="cos(0.01t)", width=4), timeless=True) # Log the data on a timeline called "step". for t in range(0, int(tau * 2 * 100.0)): rr.set_time_sequence("step", t) rr.log("trig/sin", rr.Scalar(sin(float(t) / 100.0))) rr.log("trig/cos", rr.Scalar(cos(float(t) / 100.0)))