I have some data points that are plotted against the time. The variation goes positive and negative as the the time goes on. Taking zero as my refernce line I want to show a different color (say red) to those points which are below the reference line(negative)and some other color (say blue) to those points which are above the reference line.
MATLAB: How to give data points different colors above and below a reference line
dual color plot
Best Answer