TransWikia.com

What interactive graph package do you use for timeseries data?

Data Science Asked by user1255603 on September 28, 2021

I have millions of sensor readings taken over time. I’d like to create an interactive plot in Google colab where I can easily zoom in on sections. I’ve done something similar with the Plotly package. However, it fails when the amount of data gets over ~ 700,000.

Are there interactive plotting packages that work with Google colab and handle millions of data points?

Thank you.

2 Answers

I didn't get an answer so here's my take. Ideally, I would use holoviews and the pyviz packages...to some extent i can, so i will continue to try this method. However, many of the examples do not work.

Answered by user1255603 on September 28, 2021

I didn't have trouble getting colab and python to plot interactively with one million points:

import numpy as np
import seaborn as sns7
import matplotlib.pyplot as plt
# one million points
x = np.arange(1000000)
y = np.sin(x/50000)
# Static figure
plt.plot(x,y)
#Plotly interactive figure:
import plotly.express as px
fig = px.scatter(x=x, y=y)
fig.show()

See results below. I note that it was surprisingly slow enter image description here

UPDATE: I realized that this wasn't a many data points issue, but also a time series one. I was able to confirm that plotly fails when the x data are time series and the number of points is very large (1 million).

Answered by BKay on September 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP