Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with plotting a periodic orbit #146

Closed
olivierfaugeras opened this issue Mar 26, 2024 · 2 comments
Closed

Problem with plotting a periodic orbit #146

olivierfaugeras opened this issue Mar 26, 2024 · 2 comments

Comments

@olivierfaugeras
Copy link

I have been successfully running the code in the documentation at https://bifurcationkit.github.io/BifurcationKitDocs.jl/dev/tutorials/ode/tutorialsODE/#Branch-of-periodic-orbits-with-Orthogonal-Collocation
until I tried to visualise the periodic orbit with the following two lines

sol = get_periodic_orbit(br_pocoll, 100)
plot(sol, title = "Periodic orbit")

getting the following error message after trying to execute the plot command:

ERROR: Cannot convert BifurcationKit.SolPeriodicOrbit{Vector{Float64}, Base.ReshapedArray{Float64, 2, SubArray{Float64, 1, Vector{Float64}, Tuple{UnitRange{Int64}}, true}, Tuple{}}} to series data for plotting Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] _prepare_series_data(x::BifurcationKit.SolPeriodicOrbit{Vector{…}, Base.ReshapedArray{…}}) @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:8 [3] _series_data_vector(x::BifurcationKit.SolPeriodicOrbit{…}, plotattributes::Dict{…}) @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:36 [4] macro expansion @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:129 [inlined] [5] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, ::Type{RecipesPipeline.SliceIt}, x::Any, y::Any, z::Any) @ RecipesPipeline ~/.julia/packages/RecipesBase/BRe07/src/RecipesBase.jl:300 [6] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any) @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/user_recipe.jl:38 [7] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any) @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/RecipesPipeline.jl:72 [8] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any) @ Plots ~/.julia/packages/Plots/sxUvK/src/plot.jl:223 [9] plot(args::Any; kw...) @ Plots ~/.julia/packages/Plots/sxUvK/src/plot.jl:102 [10] top-level scope @ ~/Code/julia/bifurcationkit/neural-mass-equation.jl:73 Some type information was truncated. Useshow(err)to see complete types.

I did not change the values of the parameters.

Thanks for your help.
Best,
Olivier Faugeras

@rveltz
Copy link
Member

rveltz commented Mar 26, 2024

Thank you for reporting this.

@rveltz
Copy link
Member

rveltz commented Mar 26, 2024

It seems to be fixed on master.

@rveltz rveltz closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants