Break X Axis

Splits the x-axis into 2 disjoint regions in order to hide an uninteresting portion of a figure.

Vous suivez désormais cette soumission

Features
1.) Minimal fuss, just works
2.) Professional looking graphs
3.) Works with all 2D graphics objects: Lines, Text, Patches, Images, etc.
5.) Obeys ‘XTickMode’ for automatic or manual positioning of tick marks.
6.) Obeys ‘Layer’ property
7.) Works with semilogy plots and with either axis reversed
8.) Can resize after splitting axis
8.) Possible to unsplit axis

Limitations
1.) No support for semilogx or loglog plots
2.) Creates extra copies of the data which may be problematic when displaying very large data sets.
3.) Text inside an axes must have 'Clipping' turned 'Off' or be added after splitting the axis. Otherwise it may be rendered twice. See TextExample.m for more details.

Citation pour cette source

Peter (2026). Break X Axis (https://fr.mathworks.com/matlabcentral/fileexchange/42905-break-x-axis), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : BreakAxis, BreakXAxis, BreakPlot

A inspiré : Aesethetic Axis Breaks, Break Y Axis

Catégories

En savoir plus sur Axes Appearance dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.2.0.0

Added a screen shot

1.1.0.0

Fixed a bug that caused plots to be misaligned in some complex figures.

1.0.0.0