Skip to content
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

Create blueprint for plot example #5518

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented Mar 15, 2024

What

Now that we have origin-based content defaults, I'm happy with this blueprint.

    blueprint = rrb.Blueprint(
        rrb.Horizontal(
            rrb.Grid(
                rrb.BarChartView(name="Bar Chart", origin="/bar_chart"),
                rrb.TimeSeriesView(name="Curves", origin="/curves"),
                rrb.TimeSeriesView(name="Trig", origin="/trig"),
                rrb.TimeSeriesView(name="Classification", origin="/classification"),
            ),
            rrb.TextDocumentView(name="Description", origin="/description"),
            column_shares=[2, 1],
        ),
        rrb.SelectionPanel(expanded=False),
        rrb.TimePanel(expanded=False),
    )

image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

@jleibs jleibs added 🟦 blueprint The data that defines our UI examples Issues relating to the Rerun examples labels Mar 15, 2024
@jleibs jleibs marked this pull request as ready for review March 15, 2024 01:00
@jleibs jleibs added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Mar 15, 2024
@emilk emilk merged commit 735c12c into jleibs/support_for_origin Mar 15, 2024
33 of 40 checks passed
@emilk emilk deleted the jleibs/plot_blueprint branch March 15, 2024 05:52
jleibs added a commit that referenced this pull request Mar 15, 2024
### What
 - Builds on top of #5517

Now that we have origin-based content defaults, I'm happy with this
blueprint.

```python
    blueprint = rrb.Blueprint(
        rrb.Horizontal(
            rrb.Grid(
                rrb.BarChartView(name="Bar Chart", origin="/bar_chart"),
                rrb.TimeSeriesView(name="Curves", origin="/curves"),
                rrb.TimeSeriesView(name="Trig", origin="/trig"),
                rrb.TimeSeriesView(name="Classification", origin="/classification"),
            ),
            rrb.TextDocumentView(name="Description", origin="/description"),
            column_shares=[2, 1],
        ),
        rrb.SelectionPanel(expanded=False),
        rrb.TimePanel(expanded=False),
    )
```


![image](https://github.com/rerun-io/rerun/assets/3312232/fad8a49f-5541-420f-b382-f27509bbed81)


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5518/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5518/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5518/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/5518)
- [Docs
preview](https://rerun.io/preview/eab89b24fcee4cf40f47c7f0da6352c9dc4bf45d/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/eab89b24fcee4cf40f47c7f0da6352c9dc4bf45d/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🟦 blueprint The data that defines our UI examples Issues relating to the Rerun examples exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants