figures4papers README

The project's README from github.com/ChenLiu-1996/figures4papers. As one markdown file: README.md.

Figures for Papers


LinkedIn Twitter Follow Google Scholar

I am Chen Liu (刘晨), a Computer Science PhD Candidate at Yale University.

This is a centralized repository of my own Python scripts for high-quality figures.

These figures are published at top venues, including Nature Machine Intelligence, ICML, NeurIPS, ECCV, etc. 🎉

Please feel free to cite any of these papers if you find them relevant or helpful. 🎓
在符合学术规范的前提下,欢迎大家狠狠引用。 🎓


Bar plots for quantitative comparison

Bar plots for composition breakdown

3D spheres

Radar plots                   Line plots

Radar comparison Post-training comparison

Concept plots

Trend plots

Miscellaneous: figures not made end-to-end in Python

These figures were made partially in Python. I included them to acknowledge the time and efforts I spent on them.






LLM skill integration

I want to show appreciation to my friend Shan Chen who suggested doing this.

The scientific figure making skill lives in scientific-figure-making/. Demo figures live in assets/. Project-specific scripts and outputs live in figure_*/.

Skill folder hierarchy

scientific-figure-making/
├── SKILL.md                              # Quick reference: metadata, when to use, patterns, links
└── references/
    ├── api.md                            # API/conventions to implement (palette, helpers, export)
    ├── common-patterns.md                # Reusable figure patterns
    ├── demos.md                          # Real-world figure_* projects (with URLs)
    ├── design-theory.md                  # Style rationale and design principles
    └── tutorials.md                      # Step-by-step guides

Using this skill in an AI coding agent

No installation (path-based)

You can use this skill without installing anything: open this repo in your AI coding agent (e.g. Cursor, Claude Code, etc.) and reference the skill by path in your prompts. The agent reads scientific-figure-making/SKILL.md and the references/ files from the repo—no symlinks or plugins required.

Simple AI workflow

  1. Open this repository in your AI coding agent (e.g. Cursor).
  2. Ask the AI to create or update a plotting script in your target folder (for example figure_PROJECT_NAME/).
  3. In your prompt, explicitly ask it to follow scientific-figure-making/SKILL.md and scientific-figure-making/references/design-theory.md.
  4. Run the generated script and check the exported figure.

Prompt template (copy/paste)

Create a publication-quality figure script at <target_path>.
Use the Scientific Figure Making skill conventions from:
- scientific-figure-making/SKILL.md
- scientific-figure-making/references/design-theory.md
- scientific-figure-making/references/api.md (palette, helpers, export)

Implement or adapt the patterns (apply_publication_style, make_* helpers, finalize_figure). See figure_* folders for reference scripts.
Input data: <describe your data or paste arrays>.
Output files: <name>.png and <name>.pdf.
Keep the style consistent with this repository.
Install as a skill (symlink)

From the repository root, run:

Agent Commands
Cursor mkdir -p ~/.cursor/skills then ln -s "$(pwd)/scientific-figure-making" ~/.cursor/skills/scientific-figure-making
Claude Code mkdir -p ~/.claude/skills then ln -s "$(pwd)/scientific-figure-making" ~/.claude/skills/scientific-figure-making
Codex mkdir -p ~/.codex/skills then ln -s "$(pwd)/scientific-figure-making" ~/.codex/skills/scientific-figure-making

Restart the agent (or refresh its skill list) after linking. You can then invoke or cite the skill by name in addition to using path-based references when the repo is open.

ImmunoStruct (Nature Machine Intelligence 2026)

nature PDF Huggingface Huggingface GitHub Stars

@article{givechian2026immunostruct,
  title={ImmunoStruct enables multimodal deep learning for immunogenicity prediction},
  author={Givechian, Kevin Bijan and Rocha, Jo{\~a}o Felipe and Liu, Chen and Yang, Edward and Tyagi, Sidharth and Greene, Kerrie and Ying, Rex and Caron, Etienne and Iwasaki, Akiko and Krishnaswamy, Smita},
  journal={Nature Machine Intelligence},
  volume={8},
  pages={70--83},
  year={2026},
  publisher={Nature Publishing Group UK London}
}
LM-Dispersion (ICML 2026)

OpenReview ICML 2026 Project Page arXiv PDF GitHub Stars

@inproceedings{liu2026dispersion,
  title={Dispersion loss counteracts embedding condensation and improves generalization in small language models},
  author={Liu, Chen and Sun, Xingzhi and Xiao, Xi and Van Tassel, Alexandre and Xu, Ke and Reimann, Kristof and Liao, Danqi and Gerstein, Mark and Wang, Tianyang and Wang, Xiao and Krishnaswamy, Smita},
  booktitle={International Conference on Machine Learning},
  year={2026},
  organization={PMLR}
}
VIGIL (ECCV 2026)

OpenReview Project Page arXiv PDF

@inproceedings{xiao2026vigil,
  title={Staying VIGILant: Mitigating Visual Laziness via Counterfactual Visual Alignment in MLLMs},
  author={Xiao, Xi and Liu, Chen and Liao, Chih-Ting and Zhang, Yunbei and Lan, Qizhen and Wei, Yuxiang and Zhao, Lin and Wang, Janet and Gu, Jianyang and Ye, Muchao and Wang, Tianyang and Xu, Hao},
  booktitle={European Conference on Computer Vision},
  year={2026},
  organization={Springer}
}
RNAGenScape

arXiv PDF

@article{liao2025rnagenscape,
  title={RNAGenScape: Property-Guided, Optimized Generation of mRNA Sequences with Manifold Langevin Dynamics},
  author={Liao, Danqi and Liu, Chen and Sun, Xingzhi and Tang, Di{\'e} and Wang, Haochen and Youlten, Scott and Gopinath, Srikar Krishna and Lee, Haejeong and Strayer, Ethan C and Giraldez, Antonio J and Krishnaswamy, Smita},
  journal={arXiv preprint arXiv:2510.24736},
  year={2025}
}
Brainteaser (NeurIPS 2025)

OpenReview NeurIPS 2025 HuggingFace Dataset arXiv PDF GitHub Stars

@inproceedings{han2025creativity,
  title={Creativity or brute force? using brainteasers as a window into the problem-solving abilities of large language models},
  author={Han, Sophia and Dai, Howard and Xia, Stephen and Zhang, Grant and Liu, Chen and Chen, Lichang and Nguyen, Hoang H and Mei, Hongyuan and Mao, Jiayuan and McCoy, R Thomas},
  journal={Advances in Neural Information Processing Systems},
  volume={38},
  pages={146950--147004},
  year={2025}
}

figures4papers (ChenLiu-1996/figures4papers)

Searching Database…

这是什么?一套个人收集的 Python 脚本(外加一个 AI 智能体技能),用来制作作者发表在 Nature Machine Intelligence、ICML、NeurIPS、ECCV 等期刊和会议上的论文所用的那类高质量图表。
这是要 pip install 的 Python 库,还是别的东西?不是可 pip 安装的库——它是一个仓库,内含独立运行的示例脚本,外加一个 'scientific-figure-making' 技能文件夹,AI 编程智能体(Cursor、Claude Code、Codex)可以直接读取它来为你编写新的绘图代码。
这个绘图技能到底怎么用?最简单的方式是免安装:在你的 AI 编程智能体中打开该仓库,让它在编写绘图脚本时遵循 scientific-figure-making/SKILL.md 和 references/design-theory.md,然后你自己运行脚本。也可以把技能文件夹符号链接到智能体的 skills 目录,实现永久安装。
这个技能支持哪些编程智能体?Cursor、Claude Code 和 Codex 都有明确说明,各自有对应的符号链接命令(比如 Claude Code 是 ln -s 到 ~/.claude/skills/scientific-figure-making);任何能读取这个开放仓库中文件的智能体也都可以使用按路径引用的模式。
这些脚本能开箱即用地跑我自己的数据吗?基本不能——大多数脚本都是针对特定项目的示例。预期的流程是让你的 AI 智能体按照该技能的指引,为你的目标文件夹编写一个新脚本,然后由你运行并亲自检查导出的图表。
用这个技能能做哪些类型的图?它涵盖用于定量比较和构成分解的柱状图、三维球面图和雷达图、折线图、概念图和趋势图——与作者本人在 ICML、NeurIPS 和 ECCV 论文中使用的图表类型相同。
作者为什么把它做成 AI 智能体技能,而不只是一个脚本库?Chen Liu 是在朋友的建议下加入技能格式的,这样 Cursor 和 Claude Code 等编程智能体就能读取 SKILL.md,按需生成达到发表水准的新图表,而不用让用户手动复制、改写原始脚本。
哪些论文用过这套流程做的图?ImmunoStruct(Nature Machine Intelligence 2026)、LM-Dispersion(ICML 2026)、VIGIL(ECCV 2026)和 RNAGenScape Brainteaser(NeurIPS 2025)等工作被列为采用这套绘图方法的相关论文。
Size
44.6 MB
Stars
8.7K
Updated
CommitOct 12
Age
1y
Commits · 90 Days