Skip to content

Robertjam954/multimodal_rag_application / .claude/skills/publication-figures

publication-figures

Verified

Publication-quality scientific figure standard for this repo. Use whenever creating, exporting, or revising any plot, chart, panel, or figure (matplotlib/seaborn), or generating report artifacts under reports/.

Publication Figures

When to Use

  • Creating or editing any figure, plot, chart, or multi-panel export
  • Generating artifacts under reports/
  • Any prompt mentioning figure, plot, panel, chart, axis, legend, DPI

Required Output

  • Vector PDF + 600 DPI PNG for every figure (export both).
  • Font: Arial (fall back to a sans-serif that renders as Arial); embed fonts in the PDF.
  • Palette: Okabe-Ito colorblind-safe palette; verify the figure is legible in grayscale.
  • Statistics on the figure: show error bars, the n per group, and significance markers where a comparison is made.
  • No chartjunk: minimal gridlines, direct labels over legends where feasible.

Matplotlib Setup Snippet

import matplotlib as mpl
mpl.rcParams.update({
    "font.family": "Arial",
    "pdf.fonttype": 42,   # embed TrueType (editable text in the PDF)
    "ps.fonttype": 42,
    "savefig.dpi": 600,
    "figure.constrained_layout.use": True,
})

# Okabe-Ito
OKABE_ITO = ["#000000", "#E69F00", "#56B4E9", "#009E73",
             "#F0E442", "#0072B2", "#D55E00", "#CC79A7"]

def save_figure(fig, stem):
    fig.savefig(f"reports/{stem}.pdf")           # vector
    fig.savefig(f"reports/{stem}.png", dpi=600)  # raster

Anti-Patterns

  • Rainbow / jet colormaps, or palettes indistinguishable in grayscale.
  • PNG-only export (no vector), or DPI < 300.
  • Bare point estimates with no error bars, n, or significance.

Integration

  • Pair with [[data-analysis-hygiene]] — audit the data before plotting it.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 193kUpdated Claude CodeCodexVerifiedInstall