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 Qthread
s.
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
Built Distribution
File details
Details for the file mlpyqtgraph-0.6.1.tar.gz
.
File metadata
- Download URL: mlpyqtgraph-0.6.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6adc90d0cbd94016fb8f87f2c1e3f43a910027ffdf4eb06ca1d8f2a7bbe17490 |
|
MD5 | 6bcbba518e2fddcc28fdaa2b27191bc5 |
|
BLAKE2b-256 | eb3271f77744ed24e13b0bfb3f5c3716ae21a8b2af8d94d2ea2d6432ae5ea875 |
Provenance
The following attestation bundles were made for mlpyqtgraph-0.6.1.tar.gz
:
Publisher:
push.yaml
on swvanbuuren/mlpyqtgraph
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mlpyqtgraph-0.6.1.tar.gz
- Subject digest:
6adc90d0cbd94016fb8f87f2c1e3f43a910027ffdf4eb06ca1d8f2a7bbe17490
- Sigstore transparency entry: 147949713
- Sigstore integration time:
- Predicate type:
File details
Details for the file mlpyqtgraph-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: mlpyqtgraph-0.6.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da57b24af336b0334968b26151c1e205b2d7352cad7877fa6f8dd4777cbde5a |
|
MD5 | 04b15b97ef46bd3282576ef1ed6ba1fb |
|
BLAKE2b-256 | 2353e01e31134e32606e9be1616a6f81051209f46b8ed419574e5b58f1483df9 |
Provenance
The following attestation bundles were made for mlpyqtgraph-0.6.1-py3-none-any.whl
:
Publisher:
push.yaml
on swvanbuuren/mlpyqtgraph
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mlpyqtgraph-0.6.1-py3-none-any.whl
- Subject digest:
3da57b24af336b0334968b26151c1e205b2d7352cad7877fa6f8dd4777cbde5a
- Sigstore transparency entry: 147949715
- Sigstore integration time:
- Predicate type: