PyQtGraph offers fast 2D and 3D plotting, image views, and lab-style GUI widgets built on Qt bindings and NumPy.
Overview
PyQtGraph is a pure-Python graphics and GUI library aimed at mathematics, science, and engineering applications. It sits on PyQt or PySide plus NumPy, using Qt's GraphicsView for 2D work and OpenGL where 3D graphics are needed.
Interactive plot widgets support line and scatter data with mouse pan and zoom suited to live signals. Image views handle many dtypes and bit depths, including multichannel RGB and luminance data, with tools to slice volumes at arbitrary angles. A 3D subsystem covers volumetric rendering, meshes, isosurfaces, and scatter plots when Python-OpenGL bindings are present.
Beyond charts, the package ships flowchart nodes for rapid prototypes, parameter trees, dockable layouts, ROI selectors, a debugging console, and helpers for multi-process plotting. Optional libraries add SciPy filters, HDF5 export, matplotlib colormaps, CUDA via cupy, and numba-accelerated image routines.
Install via pip or conda; an examples launcher is available through the module entry point. The project notes it runs on Linux, Windows, and macOS wherever the listed Python, Qt, and NumPy dependencies are supported.
Key features
- Interactive 2D line and scatter plots
- Image and video display widgets
- 3D volumetric and surface plotting
- Region-of-interest data slicing
- Flowchart-style visual prototyping
- Parameter tree and dock widgets
- OpenGL-backed 3D scene graph
- Optional SciPy and HDF5 integrations
Use cases
- Realtime laboratory instrument UIs
- MRI or multidimensional image review
- Neuroscience time-series viewers
- Engineering desktop dashboards on Qt
- Rapid GUI experiments with flowcharts