image thumbnail

Break Y Axis

version 1.2.0.0 (11.7 KB) by MikeCF
Splits the y axis hiding values within a given range

11.1K Downloads

Updated 06 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 (2021). 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
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!