chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""Demonstrates how to programmatically re-use a blueprint stored in a file."""
|
||||
|
||||
import sys
|
||||
|
||||
import rerun as rr
|
||||
|
||||
path_to_rbl = sys.argv[1]
|
||||
|
||||
rr.init("rerun_example_reuse_blueprint_file", spawn=True)
|
||||
rr.log_file_from_path(path_to_rbl)
|
||||
|
||||
# … log some data as usual …
|
||||
@@ -0,0 +1,23 @@
|
||||
"""Craft an example blueprint with the python API and save it to a file."""
|
||||
|
||||
import sys
|
||||
|
||||
import rerun.blueprint as rrb
|
||||
|
||||
path_to_rbl = sys.argv[1]
|
||||
|
||||
rrb.Blueprint(
|
||||
rrb.Horizontal(
|
||||
rrb.Grid(
|
||||
rrb.BarChartView(name="Bar Chart", origin="/bar_chart"),
|
||||
rrb.TimeSeriesView(
|
||||
name="Curves",
|
||||
origin="/curves",
|
||||
),
|
||||
),
|
||||
rrb.TextDocumentView(name="Description", origin="/description"),
|
||||
column_shares=[3, 1],
|
||||
),
|
||||
rrb.SelectionPanel(state="collapsed"),
|
||||
rrb.TimePanel(state="collapsed"),
|
||||
).save("your_blueprint_name", path_to_rbl)
|
||||
Reference in New Issue
Block a user