uplot-python


Nameuplot-python JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryPython wrapper for μPlot time series.
upload_time2024-10-29 15:41:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords json time series plot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # uplot-python

Python wrapper for [μPlot](https://github.com/leeoniya/uPlot) 📈

## Installation

### From PyPI

```console
pip install uplot-python
```

## Usage

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

```py
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`:

```py
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](https://github.com/leeoniya/uPlot): A small (~45 KB min), fast chart for time series, lines, areas, ohlc & bars.
- [Matplotlib](https://matplotlib.org/stable/): Comprehensive library for creating static, animated, and interactive visualizations.
- [matplotlive](https://github.com/stephane-caron/matplotlive): Stream live plots to a Matplotlib figure.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "uplot-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "St\u00e9phane Caron <stephane.caron@normalesup.org>",
    "keywords": "json, time, series, plot",
    "author": null,
    "author_email": "St\u00e9phane Caron <stephane.caron@normalesup.org>",
    "download_url": "https://files.pythonhosted.org/packages/08/82/565b26fbb9066d093bb1b88593bad484b435a17b8795389e38fdf34a64aa/uplot_python-1.0.0.tar.gz",
    "platform": null,
    "description": "# uplot-python\n\nPython wrapper for [\u03bcPlot](https://github.com/leeoniya/uPlot) \ud83d\udcc8\n\n## Installation\n\n### From PyPI\n\n```console\npip install uplot-python\n```\n\n## Usage\n\nThe `plot` function has the same API as \u00b5Plot's `uPlot.plot`:\n\n```py\nimport numpy as np\nimport uplot\n\nt = np.linspace(0.0, 1.0, 10)\ndata = [t, np.exp(0.42 * t)]\nopts = {\n    \"width\": 1920,\n    \"height\": 600,\n    \"title\": \"Example with plot\",\n    \"series\": [{}, { \"stroke\": \"red\", }, ],\n}\n\nuplot.plot(opts, data)\n```\n\nFor 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`:\n\n```py\nimport numpy as np\nimport uplot\n\nt = np.linspace(0.0, 1.0, 10)\nuplot.plot2(\n    t,\n    [np.exp(0.1 * t), np.exp(-10.0 * t), np.cos(t)],\n    title=\"Example with plot2\",\n    left_labels=[\"exp(A t)\", \"exp(-B t)\", \"cos(t)\"],\n)\n```\n\n## See also\n\n- [\u00b5Plot](https://github.com/leeoniya/uPlot): A small (~45 KB min), fast chart for time series, lines, areas, ohlc & bars.\n- [Matplotlib](https://matplotlib.org/stable/): Comprehensive library for creating static, animated, and interactive visualizations.\n- [matplotlive](https://github.com/stephane-caron/matplotlive): Stream live plots to a Matplotlib figure.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python wrapper for \u03bcPlot time series.",
    "version": "1.0.0",
    "project_urls": {
        "Changelog": "https://github.com/stephane-caron/uplot-python/blob/master/CHANGELOG.md",
        "Homepage": "https://github.com/stephane-caron/uplot-python",
        "Source": "https://github.com/stephane-caron/uplot-python",
        "Tracker": "https://github.com/stephane-caron/uplot-python/issues"
    },
    "split_keywords": [
        "json",
        " time",
        " series",
        " plot"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c0adf5653bdb99fefb3adf0ace1f1f6e121e6a029db57c4564e021e7e7600128",
                "md5": "aaf8d2190a0c250eb508c8b45f120697",
                "sha256": "5be1c98d3e974b394e4c84cf46d2d070150c55fb9365ad535363a5c0b88cd8e0"
            },
            "downloads": -1,
            "filename": "uplot_python-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aaf8d2190a0c250eb508c8b45f120697",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 48435,
            "upload_time": "2024-10-29T15:41:07",
            "upload_time_iso_8601": "2024-10-29T15:41:07.903866Z",
            "url": "https://files.pythonhosted.org/packages/c0/ad/f5653bdb99fefb3adf0ace1f1f6e121e6a029db57c4564e021e7e7600128/uplot_python-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0882565b26fbb9066d093bb1b88593bad484b435a17b8795389e38fdf34a64aa",
                "md5": "5c526644b421a45e1a2aea11bfc37973",
                "sha256": "4f8f9e2abaf1dca28576e0a0a5bb7b06f1ca67be4dede88ca14a2f3d7fd92d54"
            },
            "downloads": -1,
            "filename": "uplot_python-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5c526644b421a45e1a2aea11bfc37973",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 48079,
            "upload_time": "2024-10-29T15:41:09",
            "upload_time_iso_8601": "2024-10-29T15:41:09.377946Z",
            "url": "https://files.pythonhosted.org/packages/08/82/565b26fbb9066d093bb1b88593bad484b435a17b8795389e38fdf34a64aa/uplot_python-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-29 15:41:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stephane-caron",
    "github_project": "uplot-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "uplot-python"
}
        
Elapsed time: 0.37698s