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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.3.1.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.3.1.tar.gz
Algorithm Hash digest
SHA256 fb5fec3824c1b733fcdeabbe1a1fb83ef4dd93513290ff0a2c805bd2f0a1aa7e
MD5 79cf8bed8f5b8d8f6bb95b88958c1c52
BLAKE2b-256 f6be9b2bca0338b7f6559e5a25ed7a18f9642294885ae96f4fcb56074166f1a6

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.3.1-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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57f019ea20eaf1984cb129e4b6d577f40b9294a3ded6469bd3f17835424ecf75
MD5 d0fe8e30364e282b1738ab6d31f57e8d
BLAKE2b-256 8cabbe2418fac1899e2d85415f18cabee873796130e6e91756e70bcaea113b25

See more details on using hashes here.

Provenance

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