Skip to content

Commit

Permalink
zplot: resize on updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagnac committed Oct 1, 2024
1 parent d35ee77 commit 85ba179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ZernikePlot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function zplot(args...; window_title = "ZernikePlot", plot_title = window_title,
fig = Figure(; size)
axis3 = Axis3(fig[1,1]; axis3attributes...)
plot = zernikeplot!(axis3, args...; kwargs...)
on(_ -> resize_to_layout!(fig), plot[3])
# hacky way to produce a top-down heatmap-style view without generating
# another plot with a different set of data
# accomplished by adding a toggle which changes the perspective on demand
Expand Down

0 comments on commit 85ba179

Please sign in to comment.