用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Treasoni/kaoyan --skill math-graph命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | math-graph |
| description | 使用 Python + Matplotlib 生成教科书级别的数学函数图像。当用户想要画函数图、生成图像、可视化数学概念、替换 ASCII 字符图时使用此技能。支持任意函数表达式、多图对比、专业标注。 |
| version | 1.0.0 |
本技能使用 Python + Matplotlib 生成高质量、教科书风格的数学函数图像,用于替换模糊的 ASCII 字符图,让数学概念更加清晰直观。
支持任意 Python/math 语法函数表达式:
abs(x), x**2, sin(x), exp(x)支持并排展示多个函数,便于对比分析:
/math-graph 画 y = |x| 的图像
/math-graph 对比 y = |x| 和 y = x^(1/3)
/math-graph 生成角点和无穷导数的对比图
# 单函数绘图
python .Codex/skills/math-graph/scripts/plot_functions.py \
--function "abs(x)" \
--range "-2,2" \
--output "考研数学/高数-一元微分学/.../assets/corner.png" \
--title "角点"
# 多函数对比(并排)
python .Codex/skills/math-graph/scripts/plot_functions.py \
--compare \
--functions "abs(x)" "np.cbrt(x)" \
--titles "角点 (|x|)" "无穷导数 (x^{1/3})" \
--output "assets/compare.png"
assets/ 子文件夹| 概念 | 函数表达式 | 说明 |
|---|---|---|
| 角点 | abs(x) | $y = |x|$,左右导数不等 |
| 无穷导数 | np.cbrt(x) | $y = x^{1/3}$,垂直切线 |
| 尖点 | np.sign(x) * np.abs(x)**(2/3) | $y = x^{2/3} \cdot \text{sgn}(x)$ |
| 可去间断 | (x**2 - 1) / (x - 1) if x != 1 else None | $y = \frac{x^2-1}{x-1}$ |
| 跳跃间断 | np.where(x < 0, -1, 1) | 阶梯函数 |
| 渐近线 | 1/x | $y = 1/x$ |
pip install matplotlib numpy seaborn
创建日期: 2026-03-16 维护者: Codex + 用户协作