Agent skill · Data & Analytics

stata-style-figures

Style every matplotlib figure like the Stata 18/19 default (stcolor) scheme — Arial embedded as TrueType, white background, recessive light-gray grid below the data, no top/right spines, unframed legends, and the validated blue/red/gray palette. Use whenever a task generates or restyles charts, plots, or figures for papers, reports, or slides, even if the user doesn't mention Stata — this is the house style for all publication figures. Also use when asked to make figures "look like Stata", match the stcolor scheme, or restyle existing matplotlib output.

kennethkhoocygithub.com/kennethkhoocyGitHub ↗
claude-codecodexMIT
Install
npx skills add kennethkhoocy/applied-micro-skills --skill stata-style-figures --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: plugins/applied-micro/skills/stata-style-figures/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 54
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Stata-style (stcolor) matplotlib figures House style for publication figures, extracted from validated generators. Paste the rcParams block, use the palette constants, follow the grid rule, and never let a restyle change data content. ## rcParams — paste at the top of every figure script ```python plt.rcParams.update({ "font.family": "sans-serif", "font.sans-serif": ["Arial", "Helvetica", "DejaVu Sans"], "mathtext.fontset": "custom", "mathtext.rm": "Arial", "mathtext.it": "Arial:italic", "mathtext.bf": "Arial:bold", "pdf.fonttype": 42, "ps.fonttype": 42, # embed fonts as TrueType "font.size": 9, "axes.linewidth": 0.6, "axes.edgecolor": "0.2", "axes.spines.top": False, "axes.spines.right": False, "axes.axisbelow": True, }) ``` `font.size` 9 for single/1x2 panels; drop to 8.5 when panels are dense (many tick labels). Figure width 6.5 in = `\textwidth` at 1-inch margins; include at `width=\textwidth` so fonts render at stated size (no downscaling). ## Palette ```python STC_BLUE = "#1f77b4" # protagonist series STC_RED = "#d62728" # accent / contrast series STC_GRAY = "0.62" # de-emphasised series STC_BLUE_LIGHT = "#c1d9ec" # shaded bands / intervals (light step of the blue) STC_GRID

What's inside
Steps it walks through
  1. rcParams — paste at the top of every figure script
  2. Palette
  3. Per-axes styling
  4. Output format — PNG by default
  5. Semantics rule — restyling never changes content
  6. Chart-type patterns
Ships with 1 file
  • README.md
More from applied-micro-skills
All skills →
About this skill
What does the stata-style-figures skill do?

Style every matplotlib figure like the Stata 18/19 default (stcolor) scheme — Arial embedded as TrueType, white background, recessive light-gray grid below the data, no top/right spines, unframed legends, and the validated blue/red/gray palette. Use whenever a task generates or restyles charts, plots, or figures for papers, reports, or slides, even if the user doesn't mention Stata — this is the house style for all publication figures. Also use when asked to make figures "look like Stata", match the stcolor scheme, or restyle existing matplotlib output.

How do I install it?

Run `npx skills add kennethkhoocy/applied-micro-skills --skill stata-style-figures --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From kennethkhoocy/applied-micro-skills, a repository with 54 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going