MakieOrg / Makie.jl

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

empty!(figure) does not completely reset the figure #4497

Open FaresX opened 3 weeks ago

FaresX commented 3 weeks ago
using GLMakie
f = Figure()
ax = Axis(f[1,1])
lines!(ax, rand(100))
ax = Axis(f[0,1])
lines!(ax, rand(100))
empty!(f)
ax = Axis(f[1,1])

Image

FaresX commented 3 weeks ago
using GLMakie
f = Figure()
ax = Axis(f[1,1])
heatmap!(ax, rand(100, 100))
DataInspector(f)
empty!(f)
ax = Axis(f[1,1])
heatmap!(ax, rand(100, 100))
DataInspector(f)
f

This is another issue that may be caused by empty!(figure). Run the codes above and resize the figure to reproduce this issue. Image