API Reference
Generated from docstrings. Requires pip install -e . and a doc build
(cd docs && make html).
Plugins
ROI Manager
ROI Plugin - mirrors the line plugin pattern exactly.
All graphics items live in the QGraphicsScene (scene coords throughout). pg.RectROI is placed in the scene, so its pos/size are scene coords, and its built-in handles work without any coordinate-system gymnastics.
- Interaction:
Toggle ON → crosshair cursor, wait for draw.
Press & drag → live rectangle preview.
Release → ROI finalised; PyQtGraph handles active for reshape/move.
Toggle OFF → ROI erased.
Line Profile
Line measurement tool.
- Interaction:
Toggle ON → click once to place the start point.
Move mouse → live preview of the line (start → cursor).
Click again → finalize the end point; line is drawn.
Drag center → move the whole line.
Drag endpoint → reposition that endpoint (live update).
Toggle OFF → line is erased.
Physical length is computed using the pixel sizes stored in the two scale bars (scale_bar_1 for X, scale_bar_2 for Y).