Skip to content

Commit

Permalink
Add a screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed May 13, 2024
1 parent 5e7a4b7 commit 0dc96b6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/content/howto/fixed-window-plot.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,20 @@ rrb.TimeSeriesView(
)
```

### Full example
## Full example
For a complete working example, you can run the following code:

snippet: tutorials/fixed_window_plot

Or you can check out a more full-featured example with multiple plot windows [here](https://github.com/rerun-io/rerun/tree/latest/examples/python/live_scrolling_plot?speculative-link).
This should create a plot that only shows the last 5 seconds of data. If you select the view, you should
see that the time range is configured as expected.

<picture>
<img src="https://static.rerun.io/fixed_window_example/8fba3d4fc8002596a166a41d01c2f97df39d54a6/full.png" alt="">
<source media="(max-width: 480px)" srcset="https://static.rerun.io/fixed_window_example/8fba3d4fc8002596a166a41d01c2f97df39d54a6/480w.png">
<source media="(max-width: 768px)" srcset="https://static.rerun.io/fixed_window_example/8fba3d4fc8002596a166a41d01c2f97df39d54a6/768w.png">
<source media="(max-width: 1024px)" srcset="https://static.rerun.io/fixed_window_example/8fba3d4fc8002596a166a41d01c2f97df39d54a6/1024w.png">
<source media="(max-width: 1200px)" srcset="https://static.rerun.io/fixed_window_example/8fba3d4fc8002596a166a41d01c2f97df39d54a6/1200w.png">
</picture>

Alternatively, you can check out a more full-featured example with multiple plot windows [here](https://github.com/rerun-io/rerun/tree/latest/examples/python/live_scrolling_plot?speculative-link).

0 comments on commit 0dc96b6

Please sign in to comment.