You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restart Excel. All `SOV_*` functions will appear in the function wizard.
@@ -1686,6 +1688,96 @@ Kaminsky-Lizondo-Reinhart (1999) signal extraction approach. Issues a signal for
1686
1688
1687
1689
---
1688
1690
1691
+
### Inline Charts (Plotting)
1692
+
1693
+
These functions render Matplotlib charts to PNG and return them as **PyXLL inline images**, so the chart appears directly inside the Excel cell — no VBA, no popup windows. Results are LRU-cached (up to 128 entries) so recalculation skips re-rendering when inputs haven't changed.
Plots the original series (light blue, semi-transparent) overlaid with a trailing rolling mean (bold blue) and returns an inline chart image.
1752
+
The rolling mean is `NaN` for the first `window − 1` positions (insufficient history) so the overlay begins only once a full window of data is available.
1753
+
1754
+
| Parameter | Type | Default | Description |
1755
+
|---|---|---|---|
1756
+
|`dates`| date range | — | Date values for the x-axis |
1757
+
|`values`| float range | — | Numeric values — must be the same length as `dates`|
1758
+
|`window`| integer |`20`| Number of periods in the rolling window (must be ≥ 1) |
1759
+
|`title`| string |`"Rolling Average"`| Chart title |
1760
+
|`width_px`| integer |`800`| Output image width in pixels |
1761
+
|`height_px`| integer |`450`| Output image height in pixels |
1762
+
1763
+
**Returns:** A PyXLL inline image (PNG rendered at `width_px × height_px`).
0 commit comments