Lmax scatter plot function added too