Documentation
README
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
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,
})
This is the opening of the README. Read the full README on GitHub.