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

Streamz hvplot resets zoom and pan on each update #472

Open
josephwinston opened this issue Oct 25, 2023 · 3 comments
Open

Streamz hvplot resets zoom and pan on each update #472

josephwinston opened this issue Oct 25, 2023 · 3 comments

Comments

@josephwinston
Copy link

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.

@martindurant
Copy link
Member

I hope you hear something from the hv people, I'm not sure there's much we can do about it on this side.

@josephwinston
Copy link
Author

Closing...

@josephwinston
Copy link
Author

Asking HV for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants