Break in the axis
970 views (last 30 days)
I have a plot of data points (x, y). The issue is that one of the first data points has a very large amplitude, whereas the rest of the data points have very small magnitudes. So what I thought that I wanted to do is to make a "cut" in the y-axis, such that it goes from 0..1 and then skips to 100..105. Perhaps with a mark such as this "----//----" in between.
Is that possible in MatLAB?
More Answers (3)
yanan LIU on 29 Feb 2020
There is no direct function as I know.
But you can try to plot the double line on your figure.
axes('Position',[.1 .78 .05 .05]);
fill([px flip(px)],[py1 flip(py2)],'w','EdgeColor','none');
Then you can get the follow figure.
Peter on 1 Aug 2013