Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs evidence-driven scientific figures for Nature-style journals, covering plotting code, captions, data audits and export checks.
Use this skill ↓59% 82%+23 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 13 of 22 without it.
We finished writing our matplotlib script `plot_survival.py` and exported `figure1.svg`. What command line tool and script should be executed to perform the automated preflight check?
Specifies running python scripts/figure_preflight.py with source and artifact flags.
3 of 3 safety checks passed
先定义图要证明什么,再决定画什么。期刊级图件是证据结构、视觉层级、数据诚信和可复现导出的共同产物。
优先服从用户现有语言与项目栈。用户未指定且不存在项目约束时,默认使用 Python,并在交付中说明;只有选择会显著影响复现或协作时才询问。
绘图前写出:
Conclusion:读者看完图后应能复述的一句话。Evidence hierarchy:主证据、支持证据、对照与边界。Panel map:每个面板的任务、数据和与其他面板的关系。Data contract:变量、单位、独立样本、缺失、排除和变换规则。Statistics contract:估计量、误差、检验、校正、n 与配对/重复结构。Export contract:栏宽、目标尺寸、字体、矢量/栅格、分辨率和 source data。详细模板读取 references/figure-contract.md。
n、中心量、误差、检验、校正、符号和缩写,使图注可独立理解。python scripts/figure_preflight.py <source.py|source.R> --artifact <figure.svg> ...。视觉与导出标准读取 references/visual-standards.md。
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.