MakieOrg / Makie.jl

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

Scatter with 3 length-1 vectors plots in 2D not 3D #3813

Open dlfivefifty opened 2 months ago

dlfivefifty commented 2 months ago

In both CairoMakie and GLMakie the following produces a 2D plot instead of a 3D one:

julia> scatter([1.], [2.], [3.])

display

If I call with length-2 vectors it works fine (eg scatter([1.,2], [2.,3], [3.,4])).

asinghvi17 commented 2 months ago

This is probably because the z component of the bounding box is flat. We need better ways of determining 3D-ness...