I drew a figure with several lines on it, and I noticed that the lines for the plot overlap the x axis when they are zero. Is there a way in which I can essentially get the x axis to build on top, not for rows?
Here is the MWE that does the same (I did not put in my exact code, since my dataset is quite large).
xdata=1:1:10;
ydata=[1;0.8;0.6;0.4;0.2;0;0;0;0;0];
line(xdata,ydata)
After I build the lines (several for each plot in my case), I do different things using the axes to get what I need (including adding a secondary set of axes). None of this seems to make any difference as to whether the x axis is drawn on top of the lines or not.
I had a search on the Internet, but I could not find anything to do with this.
source
share