Skip to content

Commit

Permalink
Updated TagPOMDP gallery example to use PGFPlotsX
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-asmar committed Jan 30, 2024
1 parent 8631324 commit 84c7868
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/src/gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,15 @@ The orange agent is the pursuer and the red agent is the evader. The pursuer mus

![TagPOMDPProblem](examples/TagPOMDP.gif)

```julia
```@setup TagPOMDP
using Pkg
Pkg.add("Plots")
Pkg.add("PGFPlotsX")
using Plots
pgfplotsx()
```

```@example TagPOMDP
using POMDPs
using TagPOMDPProblem
using NativeSARSOP
Expand All @@ -245,6 +253,12 @@ saved_gif = simulate(sim, pomdp, policy)
println("gif saved to: $(saved_gif.filename)")
```

```@setup TagPOMDP
using Pkg
Pkg.rm("Plots")
Pkg.rm("PGFPlotsX")
```

!!! note
This gif was **not** generated at documentation build time because of GR errors with Github Actions ([Plots.jl issue 4764](https://github.com/JuliaPlots/Plots.jl/issues/4764)).

Expand Down

0 comments on commit 84c7868

Please sign in to comment.