Skip to main content

Matplotlib like plotting with pyqtgraph in python

Project description

mlpyqtgraph

mlpyqtgraph enables matplotlib-like plotting with pyqtgraph in existing python programs. It relies on pqthreads to separate mlpyqtgraph's plotting functionality from the existing python program, by separating them in different Qthreads.

Checkout the documentation's introduction for more background information.

Getting started

Installation

First, install mlpyqtgraph like any other python package using pip:

pip install mlpyqtgraph

Detailed installation instructions are found in the documentation.

Usage

To use mlpyqtgraph, decorate your main function with mlpyqtgraph's plotter decorator. This diverts the existing python program into a dedicated thread, while using the main thread solely for plotting with pyqtgraph.

Now you can use mlpyqtgraph's plot functionalities inside your decorated function. A python program that shows a very basic plot could look like this:

import mlpyqtgraph as mpg

@mpg.plotter
def main():
    """ Minimal mlpyqtgraph example """
    mpg.plot(range(5), (1, 3, 2, 0, 5))

if __name__ == '__main__':
    main()

Examples

Please refer to the examples for a few applications of mlpyqtgraph.

Documentation

Check out the documentation! Please note that it's currently still under construction.

License

An MIT style license applies for mlpyqtgraph, see the LICENSE file for more details.

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

mlpyqtgraph-0.4.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

mlpyqtgraph-0.4.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file mlpyqtgraph-0.4.0.tar.gz.

File metadata

  • Download URL: mlpyqtgraph-0.4.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mlpyqtgraph-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c4100de725b2f8f22645985a62eea220918fe15c1d7903f5fb3b80ad0110b641
MD5 3994096ba2287873877227e285f4ed0f
BLAKE2b-256 842b95fc42276a7133a02fd87cdc0cff5dbc01682c65d959a1d443dbb19eab34

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlpyqtgraph-0.4.0.tar.gz:

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

File details

Details for the file mlpyqtgraph-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mlpyqtgraph-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mlpyqtgraph-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e655c868dfb3dfb1cfa1ff583943f57eff1cf07a7723bab8d6dbc5c89f8e008
MD5 7771f3ec4baf5441eff1e390931fa6f9
BLAKE2b-256 e87912d076860e8011ed915c67ec36dbf06118109294a30d4eb585b54201e2b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlpyqtgraph-0.4.0-py3-none-any.whl:

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

Supported by

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