MakieOrg / Makie.jl

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

Empty vectors of 2d Polygon plot 3d #2820

Open rafaqz opened 1 year ago

rafaqz commented 1 year ago
poly = Polygon([Point2(1, 2), Point2(3, 4), Point2(4, 5), Point2(1, 2)])
# 2d
Makie.poly([poly])
# 3d
Makie.poly(typeof(poly)[])
jkrumbiegel commented 1 year ago

I thought we wanted to decide 2d / 3d based on plot type, maybe that hasn't actually been merged, yet. But at least that was the plan, to avoid runtime differences like this.

SimonDanisch commented 1 year ago

yeah, it's in the breaking branch!