Break Y Axis

Splits the y axis hiding values within a given range

You are now following this Submission

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 (2026). Break Y Axis (https://se.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: BreakAxis, BreakPlot, Break X Axis

Inspired: Aesethetic Axis Breaks

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Example

1.1.0.0

Example

1.0.0.0