instances/xiaodazi/skills/chart-image/SKILL.md
Generate publication-quality chart images from data using matplotlib. Supports bar, line, pie, scatter, and more.
npx skillsauth add malue-ai/dazee-small chart-imageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
从数据生成高质量图表图片,支持柱状图、折线图、饼图、散点图等常见类型。
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
# 中文字体支持
plt.rcParams['font.sans-serif'] = ['PingFang SC', 'Microsoft YaHei', 'SimHei', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
fig, ax = plt.subplots(figsize=(10, 6))
# 示例:柱状图
categories = ['一月', '二月', '三月', '四月']
values = [120, 150, 180, 200]
ax.bar(categories, values, color='#4A90D9')
ax.set_title('月度销售额', fontsize=16, fontweight='bold')
ax.set_ylabel('金额(万元)')
plt.tight_layout()
plt.savefig('/tmp/chart.png', dpi=150, bbox_inches='tight')
plt.close()
| 类型 | 方法 | 适用场景 |
|---|---|---|
| 柱状图 | ax.bar() | 分类对比 |
| 折线图 | ax.plot() | 趋势变化 |
| 饼图 | ax.pie() | 占比分析 |
| 散点图 | ax.scatter() | 相关性分析 |
| 水平柱状图 | ax.barh() | 排名对比 |
| 堆叠图 | ax.bar(bottom=) | 组成分析 |
#4A90D9(蓝)、#E85D75(红)、#50C878(绿)、#F5A623(橙)development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.