Skip to content

Commit f089453

Browse files
committed
up
1 parent d28250f commit f089453

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/src/catalyst_applications/dynamical_systems.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@ Next, for any application of DynamicalSystems.jl, our `ODEProblem` must be conve
2424
```@example dynamical_systems_basins
2525
using DynamicalSystems, OrdinaryDiffEq
2626
ds = CoupledODEs(oprob, (alg = Tsit5(),))
27-
nothing # hide
2827
```
2928
We can now compute the basins of attraction. This is done by first creating a grid that designates which subspace of phase-space we wish to investigate (here, the corresponding basin of attraction is found for every point on the grid). Next, we create a `AttractorsViaRecurrences` struct, that maps initial conditions to attractors, and then use that as input to the `basins_of_attraction` function.
3029
```@example dynamical_systems_basins
3130
# We provide one grid of values for each species. These are then bundled into a tuple.
32-
x_grid = 0.0:0.01:5.0
33-
y_grid = 0.0:0.01:10.0
31+
x_grid = 0.0:0.03:6.0
32+
y_grid = 0.0:0.03:9.0
3433
grid = (x_grid, y_grid)
3534
avr = AttractorsViaRecurrences(ds, grid)
3635
basins, attractors = basins_of_attraction(avr, grid; show_progress = false)
3736
attractors
3837
```
3938
Here, `attractors` is a dictionary that maps attractor labels (the integers) to attractors. In this case we have two fixed points, one at $(0.0,0.0)$ and one at $(4.5,6.0)$. Next, `basins` is a matrix of equal size to `grid`, where each value is an integer describing to which attractor's basin that state belongs.
4039

41-
DynamicalSystems.jl also provide a simple interface for plotting the resulting basins. This uses [Makie.jl](https://docs.makie.org/stable/), and alternative plotting package to [Plots.jl](https://github.com/JuliaPlots/Plots.jl) (which is typically the preferred plotting package within the context of Catalyst). Generally, Makie is good at creating animations or interactive graphics (however, it is also a popular competitor to Plots.jl for normal plotting).
40+
DynamicalSystems.jl also provides a simple interface for plotting the resulting basins. This uses [Makie.jl](https://docs.makie.org/stable/), an alternative plotting package to [Plots.jl](https://github.com/JuliaPlots/Plots.jl) (which is typically the preferred plotting package within the context of Catalyst). Generally, Makie is good at creating animations or interactive graphics (however, it is also a [popular competitor to Plots.jl for general-purpose plotting](https://juliapackagecomparisons.github.io/pages/plotting/)).
4241
```@example dynamical_systems_basins
4342
using CairoMakie
4443
heatmap_basins_attractors(grid, basins, attractors)

0 commit comments

Comments
 (0)