← 返回
未分类 中文

Py Math Viz

Create clear math/data visualizations in Python and export to PNG (matplotlib/seaborn; optional OpenCV post-processing). Use when the user asks to plot funct...
使用matplotlib/seaborn在Python中创建清晰的数据可视化图表并导出为PNG格式(可选OpenCV后处理)。用于用户要求绘制函数图表时。
rokokol rokokol 来源
未分类 clawhub v0.1.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 430
下载
💾 1
安装
1
版本
#latest

概述

Py Math Viz

Use Python to produce clean, readable plots and export to PNG by default.

Assumptions (this workspace):

  • Preferred interpreter: /root/.openclaw/workspace/.venv-math/bin/python
  • Libraries: matplotlib, seaborn, numpy (already), opencv-python-headless (installed)

Defaults (quality rules)

  • Output: PNG, dpi>=200, white background
  • Always label axes; add title if it helps
  • Use legend when multiple series exist (and place it so it doesn’t cover data)
  • Avoid overlap:
  • prefer constrained_layout=True and/or plt.tight_layout()
  • rotate dense x-ticks, shorten tick labels
  • increase figure size instead of cramming
  • Use consistent styling:
  • seaborn.set_theme(style="whitegrid")
  • colorblind-friendly palette if unsure

Quick start (script)

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).

Plot spec

The spec is intentionally small.

Read:

  • references/spec.md — schema + examples
  • references/quick-recipes.md — recipes index (points to JSON specs / seaborn snippets / image tiling)

OpenCV helpers

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

When NOT to use

  • Interactive dashboards (Plotly/Dash) unless explicitly asked
  • 3D/mesh-heavy rendering (use specialized tools if needed)

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-03 08:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 208 📥 68,454
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,242
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 296 📥 140,104