Skip to content

Commit

Permalink
fix doc build failure (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Apr 24, 2024
1 parent c509107 commit 19882cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DynamicalSystems"
uuid = "61744808-ddfa-5f27-97ff-6e42cc95d634"
repo = "https://github.com/JuliaDynamics/DynamicalSystems.jl.git"
version = "3.3.11"
version = "3.3.12"

[deps]
Attractors = "f3fd9213-ca85-4dba-9dfd-7fc91308fec7"
Expand Down
15 changes: 7 additions & 8 deletions docs/src/visualizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,22 @@ using LinearAlgebra: norm, dot
# Dynamical system and initial conditions
ds = Systems.thomas_cyclical(b = 0.2)
u0s = ([3, 1, 1.], [1, 3, 1.], [1, 1, 3.])
u0s = [[3, 1, 1.], [1, 3, 1.], [1, 1, 3.]] # must be a vector of states!
# Observables we get timeseries of:
f1 = 3
f2 = function distance_from_symmetry(u)
function distance_from_symmetry(u)
v = SVector{3}(1/√3, 1/√3, 1/√3)
t = dot(v, u)
return norm(u - t*v)
end
fs = [f1, f2]
fs = [3, distance_from_symmetry]
fig, dsobs = interactive_trajectory_timeseries(ds, fs, u0s;
idxs = [1, 2], timeseries_names = ["x3", "dist. symm."],
timeseries_ylims = [(-2, 4), (0, 5)],
idxs = [1, 2], Δt = 0.05, tail = 500,
lims = ((-2, 4), (-2, 4)),
Δt = 0.05, tail = 500,
add_controls = false
timeseries_ylims = [(-2, 4), (0, 5)],
add_controls = false,
figure = (size = (800, 400),)
)
fig
Expand Down

0 comments on commit 19882cf

Please sign in to comment.