Useful scripts
A small, growing collection of helper scripts for different languages. Grab whichever flavor matches your workflow.
Disclaimer: These tools are experimental and may still have bugs/errors. If you spot one, please tell me!
Publication-quality plot formatting
prettify takes an existing figure and cleans it up to publication quality —
consistent fonts and sizes, tight margins, sensible tick marks, and a square aspect by
default. Drop the file somewhere on your path, then call prettify right
before saving your figure.
N-dimensional data rebinning
NDRebin rebins scattered N-dimensional data onto a regular grid, with
optional fractional binning, uncertainty propagation, and arbitrary coordinate axes.
Useful for averaging unevenly sampled measurements, integrating over one or more
dimensions, or resampling onto a common grid before further analysis.