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.6.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

mlpyqtgraph-0.6.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mlpyqtgraph-0.6.1.tar.gz
Algorithm Hash digest
SHA256 6adc90d0cbd94016fb8f87f2c1e3f43a910027ffdf4eb06ca1d8f2a7bbe17490
MD5 6bcbba518e2fddcc28fdaa2b27191bc5
BLAKE2b-256 eb3271f77744ed24e13b0bfb3f5c3716ae21a8b2af8d94d2ea2d6432ae5ea875

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3da57b24af336b0334968b26151c1e205b2d7352cad7877fa6f8dd4777cbde5a
MD5 04b15b97ef46bd3282576ef1ed6ba1fb
BLAKE2b-256 2353e01e31134e32606e9be1616a6f81051209f46b8ed419574e5b58f1483df9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlpyqtgraph-0.6.1-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