Skip to main content

Stream live plots to a matplotlib figure.

Project description

matplotlive

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matplotlive-1.1.0.tar.gz (12.8 kB view hashes)

Uploaded Source

Built Distribution

matplotlive-1.1.0-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page