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.
  • 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.0.tar.gz (85.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.0-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uplot_python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a1e771cc6adddf468db59c66d31aaac3d6bd7dcc3e47588f097cc2b416017a02
MD5 0a32d88c433a041317aea07f54f92a91
BLAKE2b-256 9b12e79d7788b8360d97ad2995b62826233c41a974b29d7513babcbfab184279

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uplot_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75c506443fb8d682034b87615dff4e4ca66d7810e5c05eddf32b8c925b83adb2
MD5 e2c158438fc1876acd294a12ad7e2f03
BLAKE2b-256 85645385fe00d522719ec51be517bbea7c6fcadaefec02d959b887b66460f45a

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