visualization
Skill2 starsChanged 3 months agoMITView on GitHub
matplotlib / seaborn 数据可视化规范(原创技能,MIT):图表类型选择、中文字体处理、样式与保存规范。当任务需要画图、做图表、生成可视化报告时加载。matplotlib and seaborn chart standards — chart type selection, CJK font handling, styling, sizing and export rules. Load when a task needs charts or a visual report.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- Lisir2002/SKILLStheir own version, first seen Nov 1, 2026
- PuckAPI/claude-sports-analyticstheir own version, first seen Oct 14, 2026
- GoogleCloudPlatform/LifeSciencestheir own version, first seen Oct 13, 2026
- microsoft/qdk-chemistrytheir own version, first seen Oct 13, 2026
- BrendenKennedy/claude-for-ai-platformstheir own version, first seen Oct 13, 2026
- chrisselig/claude-code-toolkittheir own version, first seen Oct 9, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- wu-yc/LabClaw★ 1.1ksame name
- robium-ai/robium★ 93same name
- atsushi-green/ds-ai-coding-skills★ 86same name
- microsoft/qdk-chemistry★ 79same name
- GoogleCloudPlatform/LifeSciences★ 57same name
- sshtomar/claude-code-skills-social-science★ 15same name
- qunyou-agent/finance-skills★ 4same name
- PuckAPI/claude-sports-analytics★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- BrendenKennedy/claude-for-ai-platforms★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- attach-dbSkill
- convert-fileSkill
- data-analysisSkill
- database-connectSkill
- deer-data-analysisSkill
- install-duckdbSkill
- pandas-3xSkill
- pdfSkill
- querySkill
- read-fileSkill
- statistical-modelingSkill
- xlsx-toolsSkill
The file
Files
visualization — 数据可视化规范
本技能定义 matplotlib / seaborn 的可视化标准,保证图表清晰、规范、可直接交付。与 data-analysis(工作流)、pandas-3x(pandas 技巧)配合使用。
环境与字体(Windows 必读)
import matplotlib
matplotlib.use("Agg") # 无显示环境用 Agg 后端
import matplotlib.pyplot as plt
import seaborn as sns
# 中文字体:缺失时中文会变方块
plt.rcParams["font.sans-serif"] = ["Microsoft YaHei", "SimHei"]
plt.rcParams["axes.unicode_minus"] = False # 负号不乱码图表类型选择
| 目的 | 图 |
| 分布(单变量) | sns.histplot / sns.kdeplot / 箱线图 |
| 类别对比 | 柱状图(sns.barplot)或点图 |
| 趋势 | 折线图(plt.plot) |
| 两个数值列关系 | 散点图(sns.scatterplot) |
| 相关性矩阵 | sns.heatmap(corr, annot=True) |
| 分组分布 | 箱线图 / 小提琴图(sns.boxplot / sns.violinplot) |
| 计数 | sns.countplot |
| 时间序列 | 折线 + pd.to_datetime 索引 |
交付规范(每条必须满足)
- 标题:说明图内容与口径(如「月度营收趋势(2024)」)
- 轴标签:含单位(
金额(万元)、时间) - 图例:多系列必须有
- 网格:数值型图表开
plt.grid(alpha=0.3)便于读数 - 保存:
plt.savefig("out.png", dpi=200, bbox_inches="tight"),PNG 交付;矢量报告用 PDF - 关闭:
plt.close(fig)防止内存堆积(循环画图时必做)
常用模板
分组柱状
import pandas as pd
fig, ax = plt.subplots(figsize=(8, 5))
df.groupby("category")["value"].mean().sort_values().plot.bar(ax=ax, color="#4C72B0")
ax.set_title("各品类均值对比", fontsize=13)
ax.set_ylabel("value")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout(); plt.savefig("bar.png", dpi=200, bbox_inches="tight"); plt.close(fig)时间序列折线
fig, ax = plt.subplots(figsize=(10, 4))
ts.plot(ax=ax, marker="o", markersize=3)
ax.set_title("时间序列趋势")
ax.set_ylabel("数值")
plt.tight_layout(); plt.savefig("trend.png", dpi=200, bbox_inches="tight"); plt.close(fig)热力图(相关性)
sns.heatmap(df.corr(numeric_only=True), annot=True, fmt=".2f", cmap="RdBu_r", center=0)
plt.title("相关性矩阵")
plt.tight_layout(); plt.savefig("corr.png", dpi=200, bbox_inches="tight"); plt.close()检查清单
- 中文不乱码(Microsoft YaHei / SimHei 已设置)
- 标题、轴标签(含单位)、图例齐全
- dpi ≥ 200,无元素被裁切(bbox_inches="tight")
- 颜色方案统一(sns 默认或统一色板)
- 交付前读一眼图,确认无空白/重叠/缺数据
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

