add plot Nx2 function