Thank you very much I learnt a new thing today.
However, there is one more step to solving my problem.
In my case, for a value to X {data(:2)}, there are are multiple values of Y {data(:,2)}. I want to plot only maximum abosolute value of Ys corresponding to X.