code for plotting local asymmetry