Skip to content

Conversation

@emilk
Copy link
Member

@emilk emilk commented Jun 4, 2025

Related

What

This adds a blueprint option to link the horizontal/time/X axes of multiple plots together.

I think #9789 is a nicer solution in the long run, but today I wanted to deliver value quickly (<2h work).

link-axis.mp4

Weirness

After double-clicking a view, we turn on auto-scalin of the Y axis. This can become surprising when you then pan in another plot. Overall, the hidden state of "auto-bounds" in egui_plot is… suboptimal.

@emilk emilk added ui concerns graphical user interface 📺 re_viewer affects re_viewer itself feat-plots Plots, charts, graphs, timeseries, … labels Jun 4, 2025
@github-actions
Copy link

github-actions bot commented Jun 4, 2025

Latest documentation preview deployed successfully.

Result Commit Link
f17869b https://landing-j0m2fudzx-rerun.vercel.app/docs

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

@github-actions
Copy link

github-actions bot commented Jun 4, 2025

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

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

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

@HALtheWise
Copy link

This is really cool! Thanks @emilk

Bug report: It appears that double-clicking a synced plot only zooms-to-fit on y, not x.

@Wumpf Wumpf self-requested a review June 5, 2025 09:02
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

Nice, great to have something here and very happy to see this done with a very uninvasive implementation.
Would like to address the issue on how this is presented better though before landing :)

@emilk
Copy link
Member Author

emilk commented Jun 7, 2025

Newest iteration of the UI:

image

@emilk
Copy link
Member Author

emilk commented Jun 7, 2025

Screenshot 2025-06-07 at 07 58 52

@Wumpf Wumpf merged commit 802fdef into main Jun 9, 2025
47 checks passed
@Wumpf Wumpf deleted the emilk/link-plot-x-axis branch June 9, 2025 16:30
emilk added a commit that referenced this pull request Jun 9, 2025
### Related
* Following #10146
* which merge-raced ahead of
#10161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat-plots Plots, charts, graphs, timeseries, … include in changelog 📺 re_viewer affects re_viewer itself ui concerns graphical user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync time axis for multiple TimeSeriesView

4 participants