added fn for IntLin calc and plot