code for plotting 1D tangential reduced shear profile