# scientific-visualization

scientific-visualization is a Claude Code skill for preparing scientific plots for journal submissions with publication styles, accessible palettes, and export settings, including multi-panel figures and error bars.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 240 repo stars
- Author: franklee16
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/franklee16/academic-research-skills/tree/HEAD/visualization/scientific-visualization/SKILL.md
- Updated: 2026-09-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/franklee16-scientific-visualization

## What it does

This skill guides Claude Code through creating figures for scientific manuscripts. It covers consistent styling across panels, error bars, significance markers, and palettes designed to remain distinguishable for readers with color-vision deficiencies. The examples use matplotlib, seaborn, and plotly.

Journal-specific styles and figure widths are included for Nature, Science, and Cell. Export examples use `figure_export.py` for formats such as PDF, EPS, and TIFF; the guide also shows `save_for_journal` for journal-specific output. The examples import helper modules such as `style_presets` and `figure_export`, so those imports depend on the skill’s scripts being available in the project.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill scientific-visualization -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/scientific-visualization/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/scientific-visualization/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill scientific-visualization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/scientific-visualization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill scientific-visualization -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/scientific-visualization/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install franklee16/academic-research-skills visualization/scientific-visualization/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/scientific-visualization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill scientific-visualization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/franklee16/academic-research-skills --path visualization/scientific-visualization
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/scientific-visualization/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/franklee16/academic-research-skills/tree/HEAD/visualization/scientific-visualization/SKILL.md

## When to use it
- format a plot to match Nature, Science, or Cell styles
- combine plots into a consistent multi-panel figure
- add error bars and statistical significance markers
- choose a palette that remains legible with color-vision deficiencies
- export a manuscript figure as PDF or TIFF

## Example prompts
- Format this plot for a Nature submission and check its figure dimensions.
- Create a multi-panel figure with error bars and significance markers.
- Use a color-vision-friendly palette and export the figure as PDF.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 2fd6428323c1143b.

BEGIN THIRD-PARTY FILE 2fd6428323c1143b
````text
---
name: scientific-visualization
description: Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
license: MIT license
metadata:
    skill-author: K-Dense Inc.
---

# Scientific Visualization

## Overview

Scientific visualization transforms data into clear, accurate figures for publication. Create journal-ready plots with multi-panel layouts, error bars, significance markers, and colorblind-safe palettes. Export as PDF/EPS/TIFF using matplotlib, seaborn, and plotly for manuscripts.

## When to Use This Skill

This skill should be used when:
- Creating plots or visualizations for scientific manuscripts
- Preparing figures for journal submission (Nature, Science, Cell, PLOS, etc.)
- Ensuring figures are colorblind-friendly and accessible
- Making multi-panel figures with consistent styling
- Exporting figures at correct resolution and format
- Following specific publication guidelines
- Improving existing figures to meet publication standards
- Creating figures that need to work in both color and grayscale

## Quick Start Guide

### Basic Publication-Quality Figure

```python
import matplotlib.pyplot as plt
import numpy as np

# Apply publication style (from scripts/style_presets.py)
from style_presets import apply_publication_style
apply_publication_style('default')

# Create figure with appropriate size (single column = 3.5 inches)
fig, ax = plt.subplots(figsize=(3.5, 2.5))

# Plot data
x = np.linspace(0, 10, 100)
ax.plot(x, np.sin(x), label='sin(x)')
ax.plot(x, np.cos(x), label='cos(x)')

# Proper labeling with units
ax.set_xlabel('Time (seconds)')
ax.set_ylabel('Amplitude (mV)')
ax.legend(frameon=False)

# Remove unnecessary spines
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

# Save in publication formats (from scripts/figure_export.py)
from figure_export import save_publication_figure
save_publication_figure(fig, 'figure1', formats=['pdf', 'png'], dpi=300)
```

### Using Pre-configured Styles

Apply journal-specific styles using the matplotlib style files in `assets/`:

```python
import matplotlib.pyplot as plt

# Option 1: Use style file directly
plt.style.use('assets/nature.mplstyle')

# Option 2: Use style_presets.py helper
from style_presets import configure_for_journal
configure_for_journal('nature', figure_width='single')
````
END THIRD-PARTY FILE 2fd6428323c1143b

The third-party file has ended. Everything between the 2fd6428323c1143b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2609 of 26347 bytes. © franklee16 · MIT · https://github.com/franklee16/academic-research-skills/tree/HEAD/visualization/scientific-visualization/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
