Python wrapper for μPlot 📈
  • JavaScript 86.9%
  • Python 13.1%
Find a file
Stéphane Caron 4ea01fc5b1
All checks were successful
ci/woodpecker/push/coverage Pipeline was successful
ci/woodpecker/push/test/1 Pipeline was successful
ci/woodpecker/push/test/3 Pipeline was successful
ci/woodpecker/push/test/2 Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
Fix changelog link in project URLs
Also add a link to foxplot in the readme.
2026-05-28 13:19:18 +02:00
.woodpecker Release v1.1.0 2026-05-28 13:13:38 +02:00
examples Move copyright notices to NOTICE file 2026-05-07 19:07:00 +02:00
tests Add headers to unit test source files 2026-05-07 19:46:26 +02:00
uplot Release v1.1.0 2026-05-28 13:13:38 +02:00
.gitignore WIP: Import module code from foxplot 2024-10-29 12:00:31 +01:00
CHANGELOG.md Release v1.1.0 2026-05-28 13:13:38 +02:00
LICENSE Initial commit 2024-10-29 11:30:16 +01:00
MANIFEST.in Get initial example to work 2024-10-29 13:59:21 +01:00
NOTICE Move copyright notices to NOTICE file 2026-05-07 19:07:00 +02:00
pixi.lock Update pixi.lock 2026-05-07 19:46:14 +02:00
pyproject.toml Fix changelog link in project URLs 2026-05-28 13:19:18 +02:00
README.md Fix changelog link in project URLs 2026-05-28 13:19:18 +02:00

uplot-python

CI Conda version PyPI version

Python wrapper for μPlot 📈

Installation

From PyPI

pip install uplot-python

Usage

The plot function has the same API as µPlot's uPlot.plot:

import numpy as np
import uplot

t = np.linspace(0.0, 1.0, 10)
data = [t, np.exp(0.42 * t)]
opts = {
    "width": 1920,
    "height": 600,
    "title": "Example with plot",
    "series": [{}, { "stroke": "red", }, ],
}

uplot.plot(opts, data)

For convenience, the library also provides a plot2 function with additional defaults aimed at time series and line plots, for an experience closer to matplotlib.pyplot.plot:

import numpy as np
import uplot

t = np.linspace(0.0, 1.0, 10)
uplot.plot2(
    t,
    [np.exp(0.1 * t), np.exp(-10.0 * t), np.cos(t)],
    title="Example with plot2",
    left_labels=["exp(A t)", "exp(-B t)", "cos(t)"],
)

See also

  • µPlot: A small (~45 KB min), fast chart for time series, lines, areas, ohlc & bars.
  • foxplot: Plot time series from MessagePack or line-delimited JSON.
  • Matplotlib: Comprehensive library for creating static, animated, and interactive visualizations.
  • matplotlive: Stream live plots to a Matplotlib figure.