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.

unbreakxaxis(breakInfo)
function unbreakxaxis(breakInfo)
    
    delete(breakInfo.leftAxes);
    delete(breakInfo.rightAxes);
    delete(breakInfo.breakAxes);
    delete(breakInfo.annotationAxes);
    
    for i = 1:numel(breakInfo.invisibleObjects)
        set(breakInfo.invisibleObjects(i),'Visible','on');
    end

end

Contact us