break Y axis

Breaks the Y-axis so that the x-axis will cross the y-axis at 0 and continues at any number

You are now following this Submission

This routine just adds 2 yTicks at the bottom of the y-axis
First added ytick will be assigned 0
Second y-tick are two almost horizontal lines to break up the y-axis

EXAMPLE
plot (rand(21,1)+50)
breakYaxis

Please if you have any comments, don't hesitate

Cite As

Mark (2026). break Y axis (https://www.mathworks.com/matlabcentral/fileexchange/22378-break-y-axis), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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