Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break axis #775

Open
wangjiawen2013 opened this issue Apr 25, 2024 · 2 comments
Open

break axis #775

wangjiawen2013 opened this issue Apr 25, 2024 · 2 comments
Labels
Extensions Extending Plotnine Feature

Comments

@wangjiawen2013
Copy link

wangjiawen2013 commented Apr 25, 2024

Hi,
How to add axis breaks using plotnine ?
image

@has2k1
Copy link
Owner

has2k1 commented Apr 25, 2024

It is not possible at the moment but we could explore having it in the future.

@has2k1 has2k1 added Feature Extensions Extending Plotnine labels Apr 25, 2024
@TyberiusPrime
Copy link
Contributor

Note that it's also not a ggplot2 thing - due to being a somewhat questionable way of visualization.
(It's ok for scatter plots, but as your example shows looks weird for lines, and it's not appropriate for bar charts).

See https://stackoverflow.com/questions/7194688/using-ggplot2-can-i-insert-a-break-in-the-axis for some good ideas for alternatives (plotnine doesn't have the zoom capability, but the facet options etc are possible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extensions Extending Plotnine Feature
Projects
None yet
Development

No branches or pull requests

3 participants