Matplotlive
Stream live plots to a matplotlib figure
Install / Use
/learn @stephane-caron/MatplotliveREADME
matplotlive
Stream live plots to a Matplotlib figure.
Example
<img src="https://github.com/user-attachments/assets/4cf0b8fa-bdf1-4a5d-bb3c-88ab9092d4ad" alt="Live plot from this example" align="right" width=250>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.
