Skip to content

Commit

Permalink
Fix docbuild failure (#227)
Browse files Browse the repository at this point in the history
* fix missing N

* bump project version

* remove addressed comment
  • Loading branch information
Datseris authored Jan 30, 2024
1 parent f602436 commit a184cfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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.1"
version = "3.3.2"

[deps]
Attractors = "f3fd9213-ca85-4dba-9dfd-7fc91308fec7"
Expand Down
6 changes: 2 additions & 4 deletions ext/src/interactive_trajectory.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using DynamicalSystems.DataStructures

# TODO: make the timeseries interactive the main function.

function DynamicalSystems.interactive_trajectory(
ds::DynamicalSystems.DynamicalSystem, u0s = [DynamicalSystems.current_state(ds)];
# Selection of what to plot
Expand All @@ -11,7 +9,7 @@ function DynamicalSystems.interactive_trajectory(
Δt = DynamicalSystems.isdiscretetime(ds) ? 1 : 0.01,
pause = nothing,
# Visualization
colors = collect(cgrad(COLORSCHEME, N; categorical = true)),
colors = collect(cgrad(COLORSCHEME, length(u0s); categorical = true)),
plotkwargs = NamedTuple(), markersize = 15,
fade = true,
# parameters
Expand Down Expand Up @@ -254,7 +252,7 @@ function DynamicalSystems.interactive_trajectory_timeseries(
ds::DynamicalSystem, fs::Vector, u0s = [current_state(ds)];
linekwargs = isdiscretetime(ds) ? (linewidth = 1,) : (linewidth = 3,),
timeseries_names = [timeseries_name(f) for f in fs],
colors = collect(cgrad(COLORSCHEME, N; categorical = true)),
colors = collect(cgrad(COLORSCHEME, length(u0s); categorical = true)),
timeseries_ylims = nothing,
timelabel = "time", timeunit = 1,
Δt = DynamicalSystems.isdiscretetime(ds) ? 1 : 0.01,
Expand Down

0 comments on commit a184cfb

Please sign in to comment.