Code covered by the BSD License  

Highlights from
Break X Axis

image thumbnail

Break X Axis

by

 

01 Aug 2013 (Updated )

Splits the x-axis into 2 disjoint regions in order to hide an uninteresting portion of a figure.

SimpleExample.m
%Create A figure
figure
mainAxes = axes;
plot(mainAxes ,1:5,1:5,'r',1:5,1:0.5:3,'b');
xlabel 'This is an X Axis Label'
ylabel 'This is a Y Axis Label'
title('A Generic Title');
legend('Red Line','Blue Line');
set(gca,'Layer','Top')

%Break The Axes
h = breakxaxis([2 3]);

%Un-Break The X Axes
%unbreakxaxes(h)

Contact us