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

Uploaded Source

Built Distribution

mlpyqtgraph-0.5.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 41203623ca8f188fcf4e22af51a26f893c97d14c764d21b9c74732fa52f1aa68
MD5 9169c75f57ffdc83da725d9a71d8fd73
BLAKE2b-256 f1d678b9b652fe448b3cc4133c3057bb22a005e2f8a909a309b12ce5cde52af2

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b5f84eceb0adf027ae3247ba92170002189c04e075c878514cd5e806f077a3a
MD5 1029c684ada5f6b8a682cf76de9e192b
BLAKE2b-256 cd4ed88e0bbbabb08d9f03701fa6d25fd19adece46678fdad6cb24dfbbc2d3f3

See more details on using hashes here.

Provenance

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