From 1830ed9e7665f8c067fbf3ea9192afff1cc100e8 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 7 Feb 2024 12:27:55 +0100 Subject: [PATCH] Plot example: make all plots approximately the same length --- examples/python/plots/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/python/plots/main.py b/examples/python/plots/main.py index 98cc7efe8fff..640b8f875989 100755 --- a/examples/python/plots/main.py +++ b/examples/python/plots/main.py @@ -88,13 +88,13 @@ def log_trig() -> None: rr.log("trig/sin", rr.SeriesLine(color=[255, 0, 0], name="sin(0.01t)"), timeless=True) rr.log("trig/cos", rr.SeriesLine(color=[0, 255, 0], name="cos(0.01t)"), timeless=True) - for t in range(0, int(tau * 2 * 1000.0)): + for t in range(0, int(tau * 2 * 100.0)): rr.set_time_sequence("frame_nr", t) - sin_of_t = sin(float(t) / 1000.0) + sin_of_t = sin(float(t) / 100.0) rr.log("trig/sin", rr.Scalar(sin_of_t)) - cos_of_t = cos(float(t) / 1000.0) + cos_of_t = cos(float(t) / 100.0) rr.log("trig/cos", rr.Scalar(cos_of_t))