How to add time series chart and image display in the circle scenario example in python ?
See original GitHub issueI’m trying to add a time series chart and image (video) visualisation in the python example. Here are the changes I made so far
in circle.py
add the stream definition
(builder.stream("/vehicle/velocity")
.category(xviz.CATEGORY.TIME_SERIES)
.type(xviz.SCALAR_TYPE.FLOAT)
.unit('m/s'))
(builder.stream("/vehicle/acceleration")
.category(xviz.CATEGORY.TIME_SERIES)
.type(xviz.SCALAR_TYPE.FLOAT))
(builder.stream("/camera/front")
.category(xviz.CATEGORY.PRIMITIVE)
.type(xviz.PRIMITIVE_TYPES.IMAGE)
)
and some sample data
builder.time_series('/vehicle/velocity').timestamp(timestamp).value(5.0)
builder.time_series('/vehicle/acceleration').timestamp(timestamp).value(0.1)
with open("image.png", "rb") as img_data:
builder.primitive("/camera/front").image(data=img_data.read())
These stream appears in the stream tree of the UI but the chart nor the image as shown below
How to make them show up in the GUI ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (4 by maintainers)
Top Results From Across the Web
8 Visualizations with Python to Handle Multiple Time-Series ...
A time-series plot with a single line is a helpful graph to express data with long sequences. It consists of an X-axis representing...
Read more >Time Series Visualization with Altair | Google Earth Engine
This tutorial provides methods for generating time series data in Earth Engine and visualizing it with the Altair library using drought and vegetation ......
Read more >Interactive Data Visualization in Python With Bokeh
This Python tutorial will get you up and running with Bokeh, using examples and a real-world dataset. You'll learn how to visualize your...
Read more >Time Series Data Visualization with Python
The first, and perhaps most popular, visualization for time series is the line plot. In this plot, time is shown on the x-axis...
Read more >Interactive Plots in Python with Plotly: A complete Guide
Let us make a data visual show proper representation of data by adding a box plot as well. fig = px.histogram(stud, x="reading score",...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know this thread is old and I hate reviving old threads, but:
Is working for me.
The UIBuilder declarative UI is hooking up to the ReactComponent
At least in the “getting started” lab/examples, hooking in your own data requires you to declare the stream_id <-> Metric.name portions as part of the process.
I also found it confusing how I had to do both react and seemingly python declarative UI, but it’s like a container in a container. GL
The python Declarative UI bindings is recent. I have an example but it’s in a different repository. I’ll verify it today and let you know.
On Mon, Aug 10, 2020 at 9:13 AM aalibasic notifications@github.com wrote: