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.4.0.tar.gz
.
File metadata
- Download URL: mlpyqtgraph-0.4.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4100de725b2f8f22645985a62eea220918fe15c1d7903f5fb3b80ad0110b641 |
|
MD5 | 3994096ba2287873877227e285f4ed0f |
|
BLAKE2b-256 | 842b95fc42276a7133a02fd87cdc0cff5dbc01682c65d959a1d443dbb19eab34 |
Provenance
The following attestation bundles were made for mlpyqtgraph-0.4.0.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.4.0.tar.gz
- Subject digest:
c4100de725b2f8f22645985a62eea220918fe15c1d7903f5fb3b80ad0110b641
- Sigstore transparency entry: 147779737
- Sigstore integration time:
- Predicate type:
File details
Details for the file mlpyqtgraph-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: mlpyqtgraph-0.4.0-py3-none-any.whl
- Upload date:
- Size: 18.5 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 | 5e655c868dfb3dfb1cfa1ff583943f57eff1cf07a7723bab8d6dbc5c89f8e008 |
|
MD5 | 7771f3ec4baf5441eff1e390931fa6f9 |
|
BLAKE2b-256 | e87912d076860e8011ed915c67ec36dbf06118109294a30d4eb585b54201e2b4 |
Provenance
The following attestation bundles were made for mlpyqtgraph-0.4.0-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.4.0-py3-none-any.whl
- Subject digest:
5e655c868dfb3dfb1cfa1ff583943f57eff1cf07a7723bab8d6dbc5c89f8e008
- Sigstore transparency entry: 147779738
- Sigstore integration time:
- Predicate type: