Streamz hvplot resets zoom and pan on each update
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- pandas, python
- Domain
- data-visualization, stream-processing
Research direction
Start with the Streamz DataFrame and hvplot example in the issue, then review the linked Discourse report to understand the zoom and pan reset. Determine whether historical data or a supported way to disable those interactions is available; done means the behavior and an actionable resolution are documented or the issue is directed to the responsible project.
Written by the indexing model from the issue text.
Description
I'm plotting a large amount of streaming data using streamz and I'm very happy with the performance.
Here is how I create the stream, data frame, and the line:
self.stream = streamz.Stream()
example = pd.DataFrame({'Time': [], 'Depth': []}, index=[])
df = streamz.dataframe.DataFrame(self.stream, example=example)
self.line = df.hvplot.line(width=800,
x='Time',
y='Depth',
).opts(
title='Depth',
xlabel='Time',
ylabel='Depth')
The data frame is periodically updated like this:
df = pd.DataFrame([(date, value)], columns=['Time', 'Depth'])
self.stream.emit(df)
This builds a nice line that changes as new data arrives. However, zooming and panning don't work as the historical data is apparently not present for the hvplot.line.
Ideally, I can provide the missing data. If this is possible, please point me to some documentation or example.
If I cannot use zooming and panning, what is the correct way to disable them?
See
https://discourse.holoviz.org/t/streamz-hvplot-resets-zoom-and-pan-on-each-update/4609/1
for the first report of this I can find.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python-streamz/streamz
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
python-streamz/streamz#481 · 4 comments ·
-
Combining the streamz.Stream.filenames() and streamz.Stream.from_textfile() using dask scatter? Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
python-streamz/streamz#480 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
python-streamz/streamz#479 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
python-streamz/streamz#478 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 10/100
python-streamz/streamz#476 · 17 comments · 2 reactions ·
All issues in python-streamz/streamz
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·