MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.41k stars 312 forks source link

Feature request: break axis #2481

Open filchristou opened 1 year ago

filchristou commented 1 year ago

I think it would be useful to start experimenting with an API for breaking axes such that different scale of values are seemingly shown in one figure.

Matplotlib already has something similar https://matplotlib.org/3.1.0/gallery/subplots_axes_and_figures/broken_axis.html

And there has also been some requests about it in discourse: https://discourse.julialang.org/t/break-axis-in-makie/62729/10 https://discourse.julialang.org/t/makie-jl-figure-with-broken-axis/85062

asinghvi17 commented 1 year ago

One could do this using a Makie.PointTrans today, it's just that the axis wouldn't visualize it accordingly.

jkrumbiegel commented 1 year ago

This wouldn't work because lines across the gap would be drawn without a visual break. The two axis approach is simplest I think.