Mlpyqtgraph
Matplotlib like plotting with pyqtgraph in python
Install / Use
/learn @swvanbuuren/MlpyqtgraphREADME
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. To enable the hooks issue:
uv run pre-commit install --install-hooks
License
An MIT style license applies for mlpyqtgraph, see the LICENSE file for more details.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
111.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
353.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
