Skip to main content

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.

Metadata

Release files for uplot-python 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uplot-python 1.1.1
File Size Uploaded
uplot_python-1.1.1.tar.gz 86.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uplot-python 1.1.1
File Interpreter ABI Platform
uplot_python-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 135.5 kB

Release files / uplot_python-1.1.1.tar.gz

Download URL uplot_python-1.1.1.tar.gz
Size 86.7 kB
Tags Source
SHA-256 checksum
How to use checksums
baa996be76451fdebfa17128db1d4ef87b523e951a1e8d2bd3e8413e517cf6e0
BLAKE2b-256 checksum
How to use checksums
c20cd89db87305339960796bca4c73893b7bc1330d2990b26d86fafa87647a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.4

Release files / uplot_python-1.1.1-py3-none-any.whl

Download URL uplot_python-1.1.1-py3-none-any.whl
Size 48.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c96cc34ff9107c3751fc31dfad48ccd6e86c6deebb8b41d7ec7d9811722208
BLAKE2b-256 checksum
How to use checksums
c6a6e97480a62662fe9fb0b63dc9ee0bbc4c44c0d7eb9b324a408728dd481549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.4

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page