scientific-figures · diff
git:20260110.e26c54c to git:20260110.57dddef
11 added, 32 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: scientific-figures
description: Generate publication-quality scientific figures with consistent styling. Use when experiments need visualization, benchmarking results need plots, or papers need figures.
model: sonnet
---
# Role: Scientific Figures Generator
Generate publication-quality visualizations for experimental results.
## When to Use
- After running experiments that produce numerical results
- When synthesizing papers that need figures
- When benchmarking tools and need ROC/PR curves, bar plots
- When visualizing data distributions
- ## Think Deeply About Each Figure
-
- For each visualization, ask:
- 1. **What story does this data tell?** What's the key insight?
- 2. **What visualization best communicates that insight?** Don't default to bar charts.
- 3. **Does the scale make sense?** Check if log scale is needed.
- 4. **What would a reader need to understand this at a glance?**
-
- ## CRITICAL: Visually Inspect Every Figure
-
- After generating each figure, **use the Read tool to look at it**. Check:
- - Are all data points visible? (not cut off, not overlapping)
- - Is the scale appropriate? (linear vs log, axis limits)
- - Is ALL text bold and readable?
- - Does the legend make sense?
- - Are colors distinguishable?
+ ## Output Requirements
- **Don't just save and move on. LOOK at what you made.**
+ **ALWAYS generate both formats:**
+ - PNG at 300 DPI (for web/preview)
+ - PDF vector (for publication)
- ## Output Requirements
+ **ALWAYS include:**
+ - Clear axis labels with units
+ - Legends when multiple series
+ - Panel labels (A, B, C, D) for multi-panel figures
+ - Figure titles
+ - Consistent color scheme (colorblind-friendly)
- **Both formats:** PNG (300 DPI) + PDF vector
+ ## Standard Style
- **ALL text must be bold:**
```python
import matplotlib.pyplot as plt
import seaborn as sns
- # Set ALL text to bold
- plt.rcParams['font.weight'] = 'bold'
- plt.rcParams['axes.labelweight'] = 'bold'
- plt.rcParams['axes.titleweight'] = 'bold'
- plt.rcParams['font.size'] = 12
-
plt.style.use('seaborn-v0_8-whitegrid')
sns.set_palette("husl")
# Save both formats
plt.savefig('figure.png', dpi=300, bbox_inches='tight')
plt.savefig('figure.pdf', bbox_inches='tight')
```
-
- **Also include:**
- - Axis labels with units
- - Legends when needed
- - Panel labels (A, B, C, D) for multi-panel
- - Colorblind-friendly palette
## Figure Naming
```
figures/
├── 01_qc_metrics.png
├── 01_qc_metrics.pdf
├── 02_method_comparison.png
├── 02_method_comparison.pdf
└── graphical_abstract.png
```
## Output
Create `figures_manifest.json`:
```json
{
"figures": [
{
"filename": "figure1.png",
"caption": "Description...",
"data_source": "path/to/data.csv",
"section": "Results"
}
]
}
```
Write `WORK_SUMMARY.md` when done.