matplotlive¶
Stream live plots to a Matplotlib figure.
Example¶
import math
import matplotlive
plot = matplotlive.LivePlot(
timestep=0.01, # seconds
duration=1.0, # seconds
ylim=(-5.0, 5.0),
)
for i in range(10_000):
plot.send("bar", math.sin(0.3 * i))
plot.send("foo", 3 * math.cos(0.2 * i))
plot.update()
Installation¶
From conda-forge¶
conda install -c conda-forge matplotlive
From PyPI¶
pip install matplotlive
See also¶
Teleplot: alternative to plot telemetry data from a running program.