plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

break axis

Open wangjiawen2013 opened this issue 1 year ago • 2 comments

Hi, How to add axis breaks using plotnine ? image

wangjiawen2013 avatar Apr 25 '24 02:04 wangjiawen2013

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

has2k1 avatar Apr 25 '24 09:04 has2k1

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).

TyberiusPrime avatar Apr 25 '24 09:04 TyberiusPrime