1.) Minimal fuss, just works
2.) Professional looking graphs
3.) Works with all 2D graphics objects: Lines, Text, Patches, Images, etc.
5.) Obeys ‘XTickMode’ for automatic or manual positioning of tick marks.
6.) Obeys ‘Layer’ property
7.) Works with semilogy plots and with either axis reversed
8.) Can resize after splitting axis
8.) Possible to unsplit axis
1.) No support for semilogx or loglog plots
2.) Creates extra copies of the data which may be problematic when displaying very large data sets.
3.) Text inside an axes must have 'Clipping' turned 'Off' or be added after splitting the axis. Otherwise it may be rendered twice. See TextExample.m for more details.
Real life saver. Extremely easy to use, and produce exactly what I wanted - a break in the axis. Thanks for this!
Amazing work! It's exactly what I am looking for. Thanks for making it available!
@ multiple breaks (as I had the the same question): Just run the code iteratively, i.e. replace the line
h = breakxaxis([2 3]);
in the "SimpleExample.m" by
h = breakxaxis([2 3]);
hh = breakxaxis(h.rightAxes , [3.7 4.2])
hhh = breakxaxis(hh.rightAxes , [4.5 4.8])
why does the legend disappears?
This worked great until 2014b came out.... Does anyone know how to fix this??? Peter, PLEASE!!! Thanks in advance >_>^
Thanks for sharing. But I don't want to this whole break visible I just want --//-- in my x-axis. Can you suggest how is it possible through your function.
The legend seems to disappear behind the plot (becoming invisible) using the Matlab 2015a version. I've tried a few things to fix this but nothing seems to work. Does anyone have any ideas to fix this?
This is a great, good looking, fool proof and easy to use function. Good job!
Thanks! It's a nice and convenient function. However, there is a little bug about making the XTickLabel. In the main function, you've rearranged the XTick array, but not the XTickLabel array. As far as adding a similar line to the XTick array part, the problem would be fixed.
Thanks it's very useful, great!!
I have one question. When i make two breaks in the same plot the axes left and right don't keep the x scale. Do you know if is it possible to keep it?
Thank you very much.
Would be nice if it could support multiple breaks. I, in particular, need that.
Pretty awesome extension, easy to use.
Added a screen shot
Fixed a bug that caused plots to be misaligned in some complex figures.