Skip to content

Commit

Permalink
Bump Makie compat (#27)
Browse files Browse the repository at this point in the history
* Bump Makie compat

(where's compathelper?)

* Remove deprecated names

oops
Move away from deprecated variable

final

* Updated GGThemr image

* Bump version
  • Loading branch information
asinghvi17 authored Feb 4, 2024
1 parent f59ae3b commit 3d6b390
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.jl.*.cov
*.jl.mem
/Manifest.toml
img/demofigure/*.png
img/demoscatter/*.png
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name = "MakieThemes"
uuid = "e296ed71-da82-5faf-88ab-0034a9761098"
authors = ["Michael Krabbe Borregaard <mkborregaard@snm.ku.dk>", "Anshul Singhvi <anshul.singhvi@columbia.edu>", "JuliaPlots contributors"]
version = "0.1.0"
version = "0.1.1"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
Makie = "0.16, 0.17, 0.18, 0.19"
Makie = "0.19, 0.20"
Colors = "0.11, 0.12"
julia = "1"

Expand Down
Binary file modified img/ggthemr_full_fresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/GGThemr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function style_ggthemr(basewidth = 2, spinewidth = basewidth * 0.75)
zgridstyle = :dash,
),
Legend = Attributes(
bgcolor = :transparent,
backgroundcolor = :transparent,
framevisible = false,
),
Scatter = Attributes(
Expand All @@ -61,7 +61,7 @@ function color_ggthemr(theme::Symbol)
color = ct[:swatch][2:end],
patchcolor = ct[:swatch][2:end],
),
Makie.default_palettes,
Makie.DEFAULT_PALETTES,
)

Attributes(
Expand Down
12 changes: 7 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ using AlgebraOfGraphics
mkpath(joinpath(dirname(@__DIR__), "img", "demofigure"))
mkpath(joinpath(dirname(@__DIR__), "img", "demoscatter"))

fig = MakieThemes.demofigure(Makie.minimal_default)
fig = MakieThemes.demofigure()
save(joinpath(dirname(@__DIR__), "img", "demofigure", "default.png"), fig; px_per_unit = 2)

fig = MakieThemes.demoscatter(Makie.minimal_default)
fig = MakieThemes.demoscatter()
save(joinpath(dirname(@__DIR__), "img", "demoscatter", "default.png"), fig; px_per_unit = 2)

old_theme = deepcopy(Makie.current_default_theme())


for i in ggthemr_colorthemes()
@test_nowarn begin
Expand All @@ -26,7 +28,7 @@ using AlgebraOfGraphics
fig = MakieThemes.demoscatter(theme_ggthemr(i))
save(joinpath(dirname(@__DIR__), "img", "demoscatter", "$i.png"), fig; px_per_unit = 2)

Makie.set_theme!(Makie.minimal_default)
Makie.set_theme!(old_theme)
end
end
fig = MakieThemes.demofigure(theme_bbc())
Expand All @@ -36,7 +38,7 @@ using AlgebraOfGraphics
fig = MakieThemes.demoscatter(theme_bbc())
save(joinpath(dirname(@__DIR__), "img", "demoscatter", "bbc.png"), fig; px_per_unit = 2)

Makie.set_theme!(Makie.minimal_default)
Makie.set_theme!(old_theme)
end

@testset "GGthemr" begin
Expand Down Expand Up @@ -69,4 +71,4 @@ end

end
end
end
end

2 comments on commit 3d6b390

@asinghvi17
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100245

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 3d6b3909b69bf8766e3542a7dda4daf1f3ed58ff
git push origin v0.1.1

Please sign in to comment.