Makie Unfilled Polygons

Hi,
what is the syntax to plot unfilled/empty polygons (via Makie.poly!) ?

Isn’t it wireframe ?

https://makie.juliaplots.org/stable/examples/plotting_functions/wireframe/

Thank you for the tip.

AFAIU wireframe is a 3D thing and does not correspond to what I am looking for.
I managed to plot what I wanted using lines on closed sets of points separated with NaNs.

I.e. moving from something like this :

for r ∈ rectangles
    xm,ym,xM,yM=r.xmin,r.ymin,r.xmax,r.ymax
    push!(polygons,Polygon([Point2f(p) for p ∈ ((xm,ym),(xM,ym),(xM,yM),(xm,yM))]))
end
poly!(ax,polygons,color = pcolors,strokewidth = 0.5)

to something like this :

xs = Vector{Float64}()
ys = Vector{Float64}()
for r ∈ rectangles
    xm,ym,xM,yM=r.xmin,r.ymin,r.xmax,r.ymax
    append!(xs,[xm,xM,xM,xm,xm,NaN])
    append!(ys,[ym,ym,yM,yM,ym,NaN])
end
lines!(ax,xs,ys,linewidth = 0.1,color=:white)
end

I wish a keyword like fill=true/false exists for poly but could not find it…

Could also just set color = :transparent on the polys

1 Like

Ach… Thank you ! I was not able to find this through the docs.