Metadata-Version: 2.4
Name: pyazrico-charts
Version: 0.1.0
Summary: Live OpenGL charts for PySide6 apps, built from a small core and pluggable features.
Author-email: Azrideus <gebraengineer@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: charts,opengl,plot,pyside6,realtime
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: numpy==2.2.6; python_version < '3.12'
Requires-Dist: numpy==2.5.5; python_version >= '3.12'
Requires-Dist: pyside6==6.12.0
Provides-Extra: dev
Requires-Dist: build==1.6.1; extra == 'dev'
Requires-Dist: mypy==2.4.0; extra == 'dev'
Requires-Dist: pytest==9.0.3; extra == 'dev'
Requires-Dist: ruff==0.17.3; extra == 'dev'
Requires-Dist: twine==7.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# pyazrico-charts

Live charts for PySide6 apps.

## Installation

```
pip install pyazrico-charts
```

## Usage

### Live OpenGL plots

```python
from pyazrico_charts.glplot import GLPlotWindow, GLSeries, HoverFeature, LegendFeature, MagnitudeFeature

plot = GLPlotWindow(columns=4, capacity=1000,
                    series=[GLSeries(n, 0, i, QColor(c)) for i, (n, c) in enumerate([("x", "red"), ("y", "green"), ("z", "blue")], 1)],
                    features=[MagnitudeFeature(), HoverFeature(), LegendFeature()])
layout.addWidget(plot.container())
plot.push([t, x, y, z])   # any thread; drawn on the next plot.update()
```

The core draws series, grid, ticks and the unit label. Everything else is a `GLPlotFeature`, added or removed at
any time with `plot.add_feature(f)` / `plot.remove_feature(f)`. A feature overrides only the hooks it needs:
`compute_columns` (with `extra_columns`) to add computed values to each row, `paint` to draw on the cached axes
layer, `over_series_rect` to keep part of that layer above the series, `mouse_press`/`mouse_move`/`mouse_release`,
`hover_move`/`hover_leave`, and `has_overlay` + `paint_overlay` to paint over everything each frame.
Built in: `LegendFeature` (click to hide a series, drag to move), `MagnitudeFeature` (|x, y, z| as one
more series) and `HoverFeature` (thin vertical line at the hovered sample with every visible value).

Colours and font come from `GLPlotStyle`; subclass `GLPlotWindow` and override `x_label`/`y_label` for other tick text.

## Testing

```
uv sync --extra dev
.venv/Scripts/python -m pytest -q
```

## License

MIT
