SeriesPoint (deprecated)
ā ļø Deprecated since 0.23.0: Use SeriesPoints
instead.
Define the style properties for a point series in a chart.
This archetype only provides styling information and should be logged as static
when possible. The underlying data needs to be logged to the same entity-path using
archetypes.Scalars
.
Components components
Optional: Color
, MarkerShape
, Name
, SeriesVisible
, MarkerSize
Shown in shown-in
API reference links api-reference-links
- š C++ API docs for
SeriesPoint
- š Python API docs for
SeriesPoint
- š¦ Rust API docs for
SeriesPoint
Example example
Point series point-series
"""Log a scalar over time."""
from math import cos, sin, tau
import rerun as rr
rr.init("rerun_example_series_point_style", spawn=True)
# Set up plot styling:
# They are logged as static as they don't change over time and apply to all timelines.
# Log two point series under a shared root so that they show in the same plot by default.
rr.log(
"trig/sin",
rr.SeriesPoints(
colors=[255, 0, 0],
names="sin(0.01t)",
markers="circle",
marker_sizes=4,
),
static=True,
)
rr.log(
"trig/cos",
rr.SeriesPoints(
colors=[0, 255, 0],
names="cos(0.01t)",
markers="cross",
marker_sizes=2,
),
static=True,
)
# Log the data on a timeline called "step".
for t in range(int(tau * 2 * 10.0)):
rr.set_time("step", sequence=t)
rr.log("trig/sin", rr.Scalars(sin(float(t) / 10.0)))
rr.log("trig/cos", rr.Scalars(cos(float(t) / 10.0)))