Skip to content

Commit

Permalink
another quick plotting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Nov 16, 2024
1 parent 601c9cd commit 633d7fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Attractors"
uuid = "f3fd9213-ca85-4dba-9dfd-7fc91308fec7"
authors = ["George Datseris <[email protected]>", "Kalel Rossi", "Alexandre Wagemakers"]
repo = "https://github.com/JuliaDynamics/Attractors.jl.git"
version = "1.23.1"
version = "1.23.2"


[deps]
Expand Down
4 changes: 2 additions & 2 deletions ext/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ function Attractors.plot_basins_curves!(ax, fractions_cont, prange = 1:length(fr
if style == :band
# transform to cumulative sum
for j in 2:length(bands)
bands[k[j]] .+= bands[k[j-1]]
bands[ukeys[j]] .+= bands[ukeys[j-1]]
end
for (j, k) in enumerate(ukeys)
if j == 1
l, u = 0, bands[k]
l = fill(0f0, length(u))
else
l, u = bands[k-1], bands[k]
l, u = bands[ukeys[j-1]], bands[ukeys[j]]
end
band!(ax, prange, l, u;
color = colors[k], label = "$(labels[k])", series_kwargs...
Expand Down
4 changes: 3 additions & 1 deletion src/mapping/grouping/pairwise_comparison.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ advantage that it is simpler, typically faster and uses less memory.
here.
* `rescale_features = true`: if true, rescale each dimension of the extracted features
separately into the range `[0, 1]`. This typically leads to more accurate grouping
for the default `metric`.
for the default `metric. threshold`, however, it should be avoid for when
there is only one attractor for the system, because it leads to it being
wrongly classified as many different attractors at the same location).
## Description
Expand Down

0 comments on commit 633d7fd

Please sign in to comment.