New function for making plots for chi-square tails