Extensions for pyqtgraph
Project description
README
Various extensions for pyqtgraph.
Installing pyqtgraph_extensions
creates two namespaces:
pyqtgraph_extensions
- various classes and functions providing some of extra functionality for pyqtgraphpyqtgraph_extended
- a namespace merging pyqtgraph_extensions with the original pyqtgraph
In principle, it should be possible to import pyqtgraph_extended
instead of pyqtgraph
and have the same behaviour but with new functionality available. So the two options for using this repository are:
import pyqtgraph as pg
import pyqtgraph_extensions as pgx
or
import pyqtgraph_extended as pg
Features
See pyqtgraph_extensions/examples
for some examples.
Axis alignment across multiple plot items
The AlignedPlotItem
is so-called because it uses its parent's graphics layout object for holding its constituent items (view box, axis items and title) rather than creating one internally. Its constituents can therefore be aligned with those of other items in the parent's graphics layout, including the constituent items of other AlignedPlotItem
objects. Here's an example.
The extensions include:
More axis controls
AxisItem
is reimplemented with its own buttons for autoranging at the upper and lower limits.
Traditional interactive color bar
pyqtgraph_extensions
adds a MATLAB-style ColorBarItem
which can be linked to multiple ImageItems.
Miscellaneous
- Simplified exporting
- Easy adding of a second vertical axis on the right hand side (with linked x axis), likewise for a second horizontal axis on the top.
- More GLGraphicsItems
Dependencies & compatibility
Required:
Optional:
- mathx - required (the polar plots in) for
pyqtgraph_recipes
.
Test environment
tox
withtox-conda
pytest
withpytest-qt
Plan / outlook
I developed the various features as needed and will continue on the same basis. When I began writing pyqtgraph_extensions
I was just starting out with Python, Git/GitHub, and open source tools in general (I'm a convert from MATLAB).
I'd be happy for any/all features to be moved into pyqtgraph
proper. Feel free to reach out.
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
Hashes for pyqtgraph_extensions-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd0cebfe777a4472c7c67cc6da8c341ef8b6b17314c3f929672f39057cd7e3d |
|
MD5 | 08f700405f38b46988cedf4ed70ba9fc |
|
BLAKE2b-256 | 4c55d771f38452f95807b21d3ee599fb4c005dbf99e03002423ddd06ea2f6618 |
Hashes for pyqtgraph_extensions-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaf4e55c160a0ea5f6fe45a6d2dee63e7833a6f25748cf612936eee6b05fcb4 |
|
MD5 | 17b4bce878a74a48d2c4d370b312d31b |
|
BLAKE2b-256 | 691de1810d64c3a8fab153953728fc6d02b10a6dfbae90faf1c389482c2738a7 |