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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlpyqtgraph-0.7.0.tar.gz.
File metadata
- Download URL: mlpyqtgraph-0.7.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e51a460720015ebd1098cec16c6d31caa8ecc7c0e86b186d9b577be3a9d1a987
|
|
| MD5 |
d68b0ea6a2a3b4f7af0661ec4a9be2b9
|
|
| BLAKE2b-256 |
7d4b9105fe501066bc2a4007221570fd58800c740c9bd404f742c89c0b2665e9
|
Provenance
The following attestation bundles were made for mlpyqtgraph-0.7.0.tar.gz:
Publisher:
push.yaml on swvanbuuren/mlpyqtgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlpyqtgraph-0.7.0.tar.gz -
Subject digest:
e51a460720015ebd1098cec16c6d31caa8ecc7c0e86b186d9b577be3a9d1a987 - Sigstore transparency entry: 785575845
- Sigstore integration time:
-
Permalink:
swvanbuuren/mlpyqtgraph@a1ca694157441290eb1c79ebdc13a351cbb06b65 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/swvanbuuren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push.yaml@a1ca694157441290eb1c79ebdc13a351cbb06b65 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mlpyqtgraph-0.7.0-py3-none-any.whl.
File metadata
- Download URL: mlpyqtgraph-0.7.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68cefcd4f9682c86f4a2692ba629873efa40bfa719d090f380be8965cbfe1fee
|
|
| MD5 |
b250957943156f9178d94e5b43a1187f
|
|
| BLAKE2b-256 |
f8640b0734336335815a262284364d14526c29ca175a0b88344b19ec58bce3b4
|
Provenance
The following attestation bundles were made for mlpyqtgraph-0.7.0-py3-none-any.whl:
Publisher:
push.yaml on swvanbuuren/mlpyqtgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mlpyqtgraph-0.7.0-py3-none-any.whl -
Subject digest:
68cefcd4f9682c86f4a2692ba629873efa40bfa719d090f380be8965cbfe1fee - Sigstore transparency entry: 785575881
- Sigstore integration time:
-
Permalink:
swvanbuuren/mlpyqtgraph@a1ca694157441290eb1c79ebdc13a351cbb06b65 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/swvanbuuren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
push.yaml@a1ca694157441290eb1c79ebdc13a351cbb06b65 -
Trigger Event:
push
-
Statement type: