Skip to content

Commit

Permalink
fix: resolution -> size
Browse files Browse the repository at this point in the history
Makie v0.20.0 deprecated the `resolution` argument, replacing it
with `size` [1].  This causes Makie to emit deprecation warnings when a theme
from TuePlots is loaded.

Change that argument in TuePlots too.

[1]: https://github.com/MakieOrg/Makie.jl/releases/tag/v0.20.0
  • Loading branch information
musoke committed May 7, 2024
1 parent d2513e4 commit 8667bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/to_makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function MakieCore.Theme(
end
width *= width_coeff
height = width * subplot_height_to_width_ratio * nrows / ncols
resolution = (width * POINTS_PER_INCH, height * POINTS_PER_INCH)
theme = merge(MakieCore.Theme(resolution = resolution), theme)
size = (width * POINTS_PER_INCH, height * POINTS_PER_INCH)
theme = merge(MakieCore.Theme(size = size), theme)
end

if thinned
Expand Down

0 comments on commit 8667bba

Please sign in to comment.