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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.6.0.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.0.tar.gz
Algorithm Hash digest
SHA256 1b97c46590a2ac61644137e44dd149433b34d4f7730804dd3b67404bc6321c8f
MD5 9b82ae2e351c47e086ef7afde588454d
BLAKE2b-256 6e90d0f9daca213307c02e8f0a55c1aa1b2b076167a5840fe2cdbbd7e6271c6a

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations:

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.6.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d92cfc1e61eb7d0e5eb6da286b0519e4664b4c49aacdb0208ebf7b4fc3ee46c
MD5 aedbecc61dfb238b89b417e23bec3114
BLAKE2b-256 bc995c0fa2adff339f5c3f887f96b0988cdcec6dc16a0923a33773c678c1df1d

See more details on using hashes here.

Provenance

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