Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jul 21, 2025

The plot view visualizes scalar data within a specific time range, without any kind of time-alignment / bootstrapping behavior:

  • For the scalar themselves, this is what you want: if you're trying to plot some data between t=100 and t=200, you don't want to display a point from t=20 (and extended bounds will take care of lines crossing the limit).
  • For the secondary components (colors, radii, names, etc), this is a problem though: you don't want your plot to change color depending on what the currently visible time range is! Secondary components have to be bootstrapped.

Before:

25-07-21_10.20.14.patched.mp4

After:

25-07-21_10.23.52.patched.mp4

@teh-cmc teh-cmc added 🪳 bug Something isn't working include in changelog 🔩 data model Sorbet feat-plots Plots, charts, graphs, timeseries, … labels Jul 21, 2025
Copy link

github-actions bot commented Jul 21, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
1058058 https://rerun.io/viewer/pr/10713 +nightly +main

Note: This comment is updated whenever you push a commit.

@teh-cmc teh-cmc force-pushed the cmc/plot_bootstrapped_secondaries branch from a775b18 to 452367c Compare July 21, 2025 08:26
Copy link
Member

@grtlr grtlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

This would be very valuable to have as a snapshot test, maybe based-off @jleibs's issue?

The scaffolding for this is quite minimal, here is an example: https://github.com/rerun-io/rerun/blob/main/crates/viewer/re_view_time_series/tests/basic.rs

@teh-cmc teh-cmc force-pushed the cmc/plot_bootstrapped_secondaries branch 3 times, most recently from c328bc1 to 15da4da Compare July 22, 2025 16:55
@teh-cmc teh-cmc force-pushed the cmc/plot_bootstrapped_secondaries branch from 15da4da to 8d85f02 Compare July 22, 2025 16:56
@teh-cmc teh-cmc force-pushed the cmc/plot_bootstrapped_secondaries branch from 9753a2c to 9faadb0 Compare July 23, 2025 07:20
@teh-cmc teh-cmc requested a review from grtlr July 23, 2025 07:27
Copy link
Member

@grtlr grtlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the test!

Did we end up not needing the Corner2D after all to remove the legend? Speaking of which, the color change was probably what caused the initial problems with the legend.

Let me quickly try what happens when we add it again.

@grtlr grtlr merged commit f03b8f8 into main Jul 23, 2025
40 checks passed
@grtlr grtlr deleted the cmc/plot_bootstrapped_secondaries branch July 23, 2025 09:29
@grtlr grtlr linked an issue Jul 23, 2025 that may be closed by this pull request
@grtlr grtlr added this to the 0.24.1 (maybe) milestone Jul 23, 2025
&re_types::archetypes::SeriesLines::new()
.with_widths([5.0])
.with_colors([re_types::components::Color::from_rgb(255, 0, 255)])
.with_names(["muh_scalars_from_45"]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My typos complain about "muh". What does it mean?

@emilk emilk changed the title Always bootstrap secondaries in plot view Fix colors sometimes being wrong in plot view Aug 6, 2025
emilk pushed a commit that referenced this pull request Aug 6, 2025
The plot view visualizes scalar data within a specific time range,
without any kind of time-alignment / bootstrapping behavior:
* For the scalar themselves, this is what you want: if you're trying to
plot some data between t=100 and t=200, you don't want to display a
point from t=20 (and _extended bounds_ will take care of lines crossing
the limit).
* For the secondary components (colors, radii, names, etc), this is a
problem though: you don't want your plot to change color depending on
what the currently visible time range is! Secondary components have to
be bootstrapped.

Before:

https://github.com/user-attachments/assets/4ad5e448-e6a9-46ed-bb02-7c88cb8cd3d1

After:

https://github.com/user-attachments/assets/03030ff5-d836-4e9f-9e70-2871c7afbdcc

---------

Co-authored-by: Jochen Görtler <[email protected]>
@emilk emilk mentioned this pull request Aug 7, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔩 data model Sorbet feat-plots Plots, charts, graphs, timeseries, … include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

visible_series does not work for portions of a line
3 participants