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.

Pre-commit hooks

This repository comes with pre-commit hooks. To enable the hooks issue:

uv run pre-commit install --install-hooks

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlpyqtgraph-0.12.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.12.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mlpyqtgraph-0.12.0.tar.gz
Algorithm Hash digest
SHA256 742b6ba749a7b3347b2a2d116055146939fc39e7e24807a498beefa0bb87870d
MD5 0c596f8878c2410a4ed1e0fa0d3e6d67
BLAKE2b-256 1eadb07d0e9148f5b32f0152588d2516455f998129f8f20419d3ec6b5f0cc8d4

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mlpyqtgraph-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mlpyqtgraph-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d69b80b17fb39d4dd66609628ced73dcd96aa65564ea3688ecd6c2faa2d2e6d9
MD5 7df472af035a33c9eabd171277822953
BLAKE2b-256 183d61bc354df699971ad31f5e5f88c7625a784e6ade68270d1a59db4d958b7c

See more details on using hashes here.

Provenance

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

Publisher: push.yaml on swvanbuuren/mlpyqtgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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