BreakXAxis

Inserts < // > into a 'broken' or discontinuous x-axis.

You are now following this Submission

h=BreakXAxis(x,y,start,stop,width) plots (x,y) and breaks the plot's x-axis between <start> and <stop>, by inserting a broken-axis symbol < // > into a space <width> wide. This type of plot is often used in scientific papers, when the data between <start> and <stop> isn't interesting. The code can be easily modified (swap y for x) to break the y-axis.

Cite As

Julie Haas (2026). BreakXAxis (https://se.mathworks.com/matlabcentral/fileexchange/3683-breakxaxis), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: BreakAxis

Inspired: Break X Axis

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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