Streamz hvplot resets zoom and pan on each update

Aberta
#472 4 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
pandas, python

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
1.3k
Forks
149
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python-streamz/streamz

Todas as issues de python-streamz/streamz

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.