Break Y Axis

Version 1.2.0.0 (11.7 KB) by MikeCF
Splits the y axis hiding values within a given range
14.3K Downloads
Updated 6 Mar 2014

View License

breakyaxis([minYvalue,maxYvalue])
Splits the y axis into two separate regions to avoid unnecessary blank space. The split interval is determined by the y-axis values minYvalue and maxYvalue
Example:
a=20*rand(21,1)+10;
figure;hold on;
plot(a);
breakyaxis([14 21]);

Cite As

MikeCF (2024). Break Y Axis (https://www.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Axes Appearance in Help Center and MATLAB Answers
Acknowledgements

Inspired by: BreakAxis, BreakPlot, Break X Axis

Inspired: Aesethetic Axis Breaks

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Example

1.1.0.0

Example

1.0.0.0