Skip to content

Conversation

@wuyao1997
Copy link
Contributor

PR Summary

break_axes is a Matplotlib-based utility module for creating broken axes. See issue 11682

In this new break_axes package, axis scaling and break marker addition are separated into two functions, as these two features are independent. Additionally, a clip_path approach is used to create breaks in spines and hide artists in the folded regions of the axes.

Currently, the implementation of break_axes consists of fewer than 900 lines of code, approximately half of which are docstrings. It can currently be installed using the following command:

pip install break_axes

Multiple Broken Axes
multi_break.png

Log Axes
logscale_break.png

Even for Contour Plot
image

break_axes is a Matplotlib-based utility module for creating broken axes. 
See issue matplotlib/matplotlib#11682
@timhoffm timhoffm merged commit f373a3d into matplotlib:main Sep 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants