norman-bury/research-writing-skill/figures-python
Claude Code and agent skill by norman-bury/research-writing-skill
- community
Checking that the SKILL.md file is still in the repository.
Use when creating data visualizations for papers - generates publication-quality plots with top-journal color schemes
Install
npx vskill@latest install norman-bury/research-writing-skill/figures-pythonSKILL.md
The same SKILL.md was published earlier as norman-bury/research-writing-skill/figures-python.
Python 数据图表
本技能指导使用 Python 生成科研论文级别的数据图表。
Checklist
- [ ] 确认 conda 环境已激活(research)
- [ ] 确认图表类型和数据
- [ ] 记录数据清单(data manifest)
- [ ] 若使用 mock/synthetic 数据,明确标注为 planning data
- [ ] 使用顶刊配色方案
- [ ] 设置 450 DPI 分辨率
- [ ] 同时输出 PNG 和 SVG
- [ ] 检查中文字体显示
- [ ] 保存到 figures/ 目录
一、环境要求
1.1 conda 环境
默认环境名:research
激活命令:
必需库:
如环境未配置,调用 environment-setup 技能。
二、图表规范
2.0 数据清单与 mock 数据边界
任何数据图都必须先有数据文件和数据清单(data manifest)。默认路径:
figures/data-manifest.md 至少记录:
| Figure | Data file | Real/mock | Source | Script | Outputs |
|---|
mock 或 synthetic 数据只允许用于规划版图表。文件名必须以 mock_ 或 synthetic_ 开头,并在图表、表格或章节草稿中保留 [待真实实验替换]。不得把 mock 数据写成“实验结果表明”。
2.1 分辨率要求
| 用途 | DPI | 说明 | |
|---|---|---|---|
| 期刊投稿 | 300-600 | 大多数期刊要求 | |
| 顶刊投稿 | 450+ | Nature/Science等 | |
| 屏幕展示 | 150 | PPT/网页 |
本技能默认使用 450 DPI
2.2 输出格式
每张图同时输出两种格式:
- PNG:位图,适合网页和PPT
- SVG:矢量图,适合期刊投稿
2.3 图表尺寸
| 类型 | 宽度(英寸) | 适用场景 | |
|---|---|---|---|
| 单栏图 | 3.5 | 期刊单栏 | |
| 双栏图 | 7.0 | 期刊双栏/全宽 | |
| PPT图 | 10.0 | 演示文稿 |
三、顶刊配色方案
3.1 Nature/Science 风格
3.2 Cell 风格
3.3 色盲友好配色
3.4 配色原则
- ❌ 禁止使用 matplotlib 默认颜色
- ❌ 禁止使用纯红、纯蓝、纯绿等基础色
- ✅ 同一图中颜色数量控制在 5 种以内
- ✅ 确保色盲友好
四、代码模板
五、常用图表类型
折线图
柱状图
热力图
箱线图
散点图
六、文件管理
目录结构
命名规范
- 文件名格式:
fig{序号}_{描述}.py - 示例:
fig1_model_architecture.py
七、质量检查
图表内容
- [ ] 数据准确无误
- [ ] 坐标轴标签完整(含单位)
- [ ] 图例清晰可读
视觉效果
- [ ] 使用顶刊配色
- [ ] 分辨率达到 450 DPI
- [ ] 字体大小适中
文件输出
- [ ] PNG 格式已生成
- [ ] SVG 格式已生成
- [ ] 文件命名规范
八、常见问题
Q1:中文显示为方块
Q2:图片模糊
Q3:图例遮挡数据
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/figures-python/SKILL.md
Popularity
- Repository stars
- 3,292
- Repository forks
- 216
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/norman-bury/research-writing-skill/figures-python)