Install
openclaw skills install @rokokol/py-math-vizCreate clear math/data visualizations in Python and export to PNG (matplotlib/seaborn; optional OpenCV post-processing). Use when the user asks to plot functions, draw graphs, visualize simulations/trajectories, compare models, make publication-quality plots, or needs a PNG chart for Telegram/notes. Includes scripts to render plots from a JSON spec and to tile/annotate images.
openclaw skills install @rokokol/py-math-vizUse Python to produce clean, readable plots and export to PNG by default.
Assumptions (this workspace):
/root/.openclaw/workspace/.venv-math/bin/pythonmatplotlib, seaborn, numpy (already), opencv-python-headless (installed)dpi>=200, white backgroundconstrained_layout=True and/or plt.tight_layout()seaborn.set_theme(style="whitegrid")Render a plot from a JSON spec.
To keep the workspace root clean, write outputs into out/ (or out/_scratch/ for throwaway experiments):
/root/.openclaw/workspace/.venv-math/bin/python \
skills/py-math-viz/scripts/plot_from_spec.py \
--spec spec.json --out out/plots/plot.png
Then send out/plots/plot.png (Telegram: use the message tool with filePath).
The spec is intentionally small. Read:
references/spec.md — schema + examplesreferences/quick-recipes.md — recipes index (points to JSON specs / seaborn snippets / image tiling)Tile multiple PNGs into one (for comparisons):
/root/.openclaw/workspace/.venv-math/bin/python \
skills/py-math-viz/scripts/tile_images.py \
--out tiled.png img1.png img2.png img3.png