Break Y Axis
Version 1.2.0.0 (11.7 KB) by
MikeCF
Splits the y axis hiding values within a given range
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 LinuxCategories
Find more on Axes Appearance in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.