Skip to content

Instantly share code, notes, and snippets.

@brainfo
brainfo / science.mplstyle
Last active July 10, 2026 17:11
science.mplstyle
# Matplotlib style — Science / AAAS figure specification
# Widths 5.7 / 12.1 / 18.4 cm; Helvetica preferred (Nimbus Sans = URW Helvetica metric clone,
# the only Helvetica-metric font installed here); text ~7 pt, never < 5 pt; symbols >= 6 pt.
# Load with: plt.style.use('style/science.mplstyle')
# --- Fonts (Helvetica is absent on this machine; Nimbus Sans matches its metrics) ---
font.family: sans-serif
font.sans-serif: Nimbus Sans, TeX Gyre Heros, Arimo, Helvetica, Arial, DejaVu Sans
font.size: 7 # base text ~7 pt at final size
@brainfo
brainfo / generalmatplotlibrc.txt
Created May 6, 2025 11:24
matplotlibrc plt style
axes.spines.right: False
axes.spines.top: False
font.family: sans-serif
font.sans-serif: Myriad, DejaVu Sans, sans-serif
pdf.fonttype: 42
ps.fonttype: 42
legend.frameon: False
figure.frameon: False
font.size: 6
scatter.marker: o