-
Notifications
You must be signed in to change notification settings - Fork 539
Fix colors sometimes being wrong in plot view #10713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
a775b18
to
452367c
Compare
There was a problem hiding this 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
c328bc1
to
15da4da
Compare
15da4da
to
8d85f02
Compare
9753a2c
to
9faadb0
Compare
There was a problem hiding this 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.
&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"]), |
There was a problem hiding this comment.
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?
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]>
The plot view visualizes scalar data within a specific time range, without any kind of time-alignment / bootstrapping behavior:
Before:
25-07-21_10.20.14.patched.mp4
After:
25-07-21_10.23.52.patched.mp4