Skip to main content

Python wrapper for μPlot time series.

Project description

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.

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.1.1.tar.gz (86.7 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.1.1-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uplot_python-1.1.1.tar.gz
Algorithm Hash digest
SHA256 baa996be76451fdebfa17128db1d4ef87b523e951a1e8d2bd3e8413e517cf6e0
MD5 b09ebdaaa1778f379e02a71108fdc3f3
BLAKE2b-256 c20cd89db87305339960796bca4c73893b7bc1330d2990b26d86fafa87647a46

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uplot_python-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07c96cc34ff9107c3751fc31dfad48ccd6e86c6deebb8b41d7ec7d9811722208
MD5 6cfd5fb68984b127247f4ef4da91d99c
BLAKE2b-256 c6a6e97480a62662fe9fb0b63dc9ee0bbc4c44c0d7eb9b324a408728dd481549

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