1

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.

user1255603
  • 119
  • 1

2 Answers2

0

I did not get an answer - so here is 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.

Ethan
  • 1,633
  • 9
  • 24
  • 39
user1255603
  • 119
  • 1
0

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).

BKay
  • 156
  • 4