Skip to main content

Python wrapper for μPlot time series.

Project description

uplot-python

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.
  • Matplotlib: Comprehensive library for creating static, animated, and interactive visualizations.
  • matplotlive: Stream live plots to a Matplotlib figure.

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

uplot_python-1.0.0.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uplot_python-1.0.0-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file uplot_python-1.0.0.tar.gz.

File metadata

  • Download URL: uplot_python-1.0.0.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for uplot_python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4f8f9e2abaf1dca28576e0a0a5bb7b06f1ca67be4dede88ca14a2f3d7fd92d54
MD5 5c526644b421a45e1a2aea11bfc37973
BLAKE2b-256 0882565b26fbb9066d093bb1b88593bad484b435a17b8795389e38fdf34a64aa

See more details on using hashes here.

File details

Details for the file uplot_python-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: uplot_python-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for uplot_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5be1c98d3e974b394e4c84cf46d2d070150c55fb9365ad535363a5c0b88cd8e0
MD5 aaf8d2190a0c250eb508c8b45f120697
BLAKE2b-256 c0adf5653bdb99fefb3adf0ace1f1f6e121e6a029db57c4564e021e7e7600128

See more details on using hashes here.

Supported by

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