Code covered by the BSD License  

Highlights from
Break X Axis

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 22 KB File ID: #42905
image thumbnail

Break X Axis

by Peter

 

01 Aug 2013

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

| Watch this File

File Information
Description

Features
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

Limitations
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.

Acknowledgements

Break Axis, Break X Axis, and Break Plot inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File  
Everyone's Tags
figureaxesaxisplotting
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us