MakieOrg / Makie.jl

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

Scale transformations of polygons not working in CairoMakie 0.12 #4385

Open hstrey opened 1 month ago

hstrey commented 1 month ago

There seems to be a change how transformations of polygons work from 0.11 to 0.12 Here is the MVE:

ffs = Figure()
ax = CairoMakie.Axis(
    ffs[1, 1],
    #yscale = log10
)

xlims!(ax, 0, 1)
ylims!(ax, 1e-3, 1)

poly!(Point2f[(0.2, 1e-3), (0.2, 1), (0.8, 1), (0.8, 1e-3)], color = (:red,0.2), strokecolor = :black, strokewidth = 1)

ffs

for CairoMakie 0.11, I get what I expect:

Cairo011linear Cairo011log

but for CairoMakie 0.12, the square disappears when going to log-scale Cairo012linear Cairo012log

MasonProtter commented 2 weeks ago

Weirdly, this works fine on GLMakie but not CairoMakie.