scientific-figure-making
它能做什么
这项技能指导制作在学术论文、幻灯片和报告中呈现效果良好的科学图表。适合使用 matplotlib 绘图库制作图表的研究人员和写作者。
适用场景
- ✓当你为研究论文、学位论文或报告准备图表时。
- ✓当你需要导出高分辨率或矢量格式的图形文件时。
- ✓当你希望把几张图表合并排列在一个多面板图中时。
技能链接
https://github.com/ChenLiu-1996/figures4papers/blob/main/scientific-figure-making/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据我的实验结果制作一张可用于发表的柱状图,并导出为 PDF 以便放入我的论文。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会遵循统一的风格规范,包括字体、颜色、图例和间距,然后以适合印刷的格式导出图形。需要时,它会参考代码仓库中的示例脚本。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Scientific figure making
Open references/ only as needed; do not preload every file. Start from the table below, then follow links inside the document you opened (and into figure_* code via references/demos.md) instead of loading the full reference set up front.
When to load this skill
- Matplotlib figures for papers, slides, or reports that must match this repo’s publication look (fonts, palette, spines, legends, export).
- Requests involving grouped bars, trend lines, heatmaps, multi-panel grids, or PDF/SVG/high-DPI output in a scientific-figure context.
- References to figures4papers
figure_*projects or “same style as the repo figures.”
When not to load
- Plotly, Altair, Bokeh, or other interactive / web-first plotting.
- EDA-only plots where seaborn or pandas is enough until there is a publication target.
- Primary workflow is 3D, GIS, or non-matplotlib tooling.
- Illustrator / Figma–first layout or infographic (not matplotlib data plots).
Related files
| File | Open when |
|---|---|
| references/tutorials.md | End-to-end walkthroughs (bar, trends, heatmap) |
| references/api.md | Function signatures, PALETTE, validation rules |
| references/common-patterns.md | Layout patterns, legend panel, print-safe bars |
| references/design-theory.md | Typography, export policy, palette rationale |
| references/demos.md | Canonical figure_* demo links in figures4papers |
常见问题
这是用于交互式仪表板的吗?
不是。它适用于静态的 matplotlib 图形,而不是 Plotly、Altair 或 Bokeh 等网页工具。
它能导出哪些文件类型?
PDF 和 SVG 等印刷与矢量格式,以及高分辨率图片。
它使用特定的样式吗?
它使用该代码仓库的风格规范,因此图形会与其示例图形保持一致。
详情
作者的原始描述
Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this repository’s house style, print/vector export conventions, and parity with figures4papers demos. Use when the user is finalizing or creating such figures in matplotlib. Do not use for interactive dashboards or web viz (Plotly, Altair, Bokeh), exploratory-only plots without a publication target, dominant 3D or geographic mapping, or Illustrator/Figma-first infographic workflows.
热度
- GitHub 星标
- 9.5k
- 排名
- #12280
- 许可证
- —
- 更新时间
- 2026/10/19
评论
- …