new x-plotline function