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, which are stored in .hooks. To enable the hooks issue:

git config --local core.hooksPath .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.6.3.tar.gz (18.1 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.6.3-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mlpyqtgraph-0.6.3.tar.gz
Algorithm Hash digest
SHA256 fe51fb4f5c62111bf0d90be2c9e4bf842dd9f14c7c788e6a03ba787de70513bb
MD5 58179f1f26e17a1eb23018e3ec68820f
BLAKE2b-256 0f6665f3319b0aa0270d5ff242e9fcaf5bee97758876f6320c9f2f7548f49e92

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlpyqtgraph-0.6.3.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.6.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mlpyqtgraph-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bec4e5a333eb492b8647b591b67bb8245123d52ba42c13b93112e00bb070c7b2
MD5 64fcd9ba8afc9d532e97abc53119cf50
BLAKE2b-256 95a64ed289acb50deb0543899fe7abc7b20fd5fa24026a0d2e1037f40a429f9b

See more details on using hashes here.

Provenance

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