Stream live plots to a matplotlib figure
Find a file
2024-08-29 11:20:49 +02:00
.github/workflows CICD: Update micromamba setup action 2024-08-16 09:44:04 +02:00
docs Add legend to sine wave example 2024-08-28 08:25:43 +02:00
examples Add legend to sine wave example 2024-08-28 08:25:43 +02:00
matplotlive Release v1.1.1 2024-08-29 11:17:15 +02:00
tests Update unit tests 2024-08-16 09:29:15 +02:00
.gitignore Update .gitignore 2024-08-16 09:39:21 +02:00
CHANGELOG.md Release v1.1.1 2024-08-29 11:17:15 +02:00
LICENSE Initial commit 2024-05-09 09:29:19 +02:00
pyproject.toml Include docs and tests in source distribution 2024-08-29 11:20:49 +02:00
README.md Add documentation badge to the readme 2024-08-16 09:39:21 +02:00
tox.ini Import LivePlot module from qpmpc and start unit testing 2024-05-09 10:57:40 +02:00

matplotlive

Build Documentation Coverage Conda version PyPI version

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.