Skip to content

Commit

Permalink
Update Makie and CairoMakie compat entries (#61)
Browse files Browse the repository at this point in the history
* Update Makie and CairoMakie compat entries

* Update docs

* Fix docs
  • Loading branch information
devmotion authored Mar 15, 2024
1 parent 48b08be commit 60973ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AbstractGPsMakie"
uuid = "7834405d-1089-4985-bd30-732a30b92057"
authors = ["David Widmann"]
version = "0.2.6"
version = "0.2.7"

[deps]
AbstractGPs = "99985d1d-32ba-4be9-9821-2ec096f28918"
Expand All @@ -10,5 +10,5 @@ Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"

[compat]
AbstractGPs = "0.3, 0.4, 0.5"
Makie = "0.15.2, 0.16, 0.17, 0.18, 0.19"
Makie = "0.15.2, 0.16, 0.17, 0.18, 0.19, 0.20"
julia = "1.3"
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
[compat]
AbstractGPs = "0.3, 0.4, 0.5"
AbstractGPsMakie = "0.2"
CairoMakie = "0.6, 0.7, 0.8, 0.9, 0.10"
CairoMakie = "0.6, 0.7, 0.8, 0.9, 0.10, 0.11"
Documenter = "1"
julia = "1.3"
2 changes: 0 additions & 2 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

```@docs
symband
symband!
```

### Example
Expand All @@ -28,7 +27,6 @@ save("symband_example.svg", current_figure()); nothing # hide

```@docs
gpsample
gpsample!
gpsample(::AbstractVector, ::AbstractGPsMakie.AbstractGP)
```

Expand Down
13 changes: 6 additions & 7 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ We load a custom set of colors and globally set the x-axis limits.
using CairoMakie.Makie.ColorSchemes: Set1_4
set_theme!(
palette=(color=Set1_4,),
patchcolor=(Set1_4[2], 0.2),
palette=(color=Set1_4, patchcolor=tuple.(Set1_4, 0.2)),
Axis=(limits=((0, 10), nothing),),
)
```
Expand Down Expand Up @@ -74,7 +73,7 @@ the plot.
```@example quickstart
using AbstractGPsMakie
plot(0:0.01:10, posterior_gp; bandscale=3)
plot(0:0.01:10, posterior_gp; bandscale=3, color=Cycled(2))
scatter!(x, y)
save("posterior.svg", current_figure()); nothing # hide
```
Expand All @@ -84,8 +83,8 @@ save("posterior.svg", current_figure()); nothing # hide
We add 10 samples from the posterior on top.

```@example quickstart
plot(0:0.01:10, posterior_gp; bandscale=3)
gpsample!(0:0.01:10, posterior_gp; samples=10, color=Set1_4[3])
plot(0:0.01:10, posterior_gp; bandscale=3, color=Cycled(2))
gpsample!(0:0.01:10, posterior_gp; samples=10, color=Cycled(3))
scatter!(x, y)
save("posterior_samples.svg", current_figure()); nothing # hide
```
Expand All @@ -95,8 +94,8 @@ save("posterior_samples.svg", current_figure()); nothing # hide
We can visualize a manifold of similar samples by animating the generated samples.[^PH2013]

```@example quickstart
scene = plot(0:0.01:10, posterior_gp; bandscale=3)
samples = gpsample!(0:0.01:10, posterior_gp; samples=10, color=Set1_4[3])
scene = plot(0:0.01:10, posterior_gp; bandscale=3, color=Cycled(2))
samples = gpsample!(0:0.01:10, posterior_gp; samples=10, color=Cycled(3))
scatter!(x, y)
record(scene, "posterior_animation.mp4", 0:0.01:4) do x
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
AbstractGPs = "0.3, 0.4, 0.5"
Makie = "0.15.2, 0.16, 0.17, 0.18, 0.19"
Makie = "0.15.2, 0.16, 0.17, 0.18, 0.19, 0.20"
julia = "1.3"

2 comments on commit 60973ea

@devmotion
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/102985

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.2.7 -m "<description of version>" 60973ea3e6758370dfcdba724f5b9451cef222d6
git push origin v0.2.7

Please sign in to comment.