Makie xrug/ yrug scatter plot

I tried to reproduce Gadfly’s xrug/yrug in Makie as in the example xrug/yrug. Appreciate your help. Thanks.

You can currently use the vlines! function for that, which only works together with Axis.

data = randn(2, 20)

fig, ax, s = scatter(data)
vlines!(ax, data[1, :], ymax = 0.025)
fig

5 Likes

Yes, this is exactly fit my requirement. Thanks.