Code and figures for inequality regimes post