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

SciML Tutorial attempts to simultaneously use keywords vars and idxs in Plot, which is not supported. #531

Open
djinnome opened this issue Aug 25, 2022 · 2 comments

Comments

@djinnome
Copy link

djinnome commented Aug 25, 2022

When I try to plot the first 250 trajectories, according to the SciML tutorial:

plot(ensemblesol, vars = (0,1), lw=1,alpha=0.1, label=nothing, idxs = 1:250)

I get this error:

Simultaneously using keywords vars and idxs is not supported. Please only use idxs.

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] macro expansion
   @ ~/.julia/packages/SciMLBase/UY87O/src/solutions/solution_interface.jl:189 [inlined]
 [3] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, sol::SciMLBase.AbstractTimeseriesSolution)
   @ SciMLBase ~/.julia/packages/RecipesBase/qpxEX/src/RecipesBase.jl:289
 [4] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline ~/.julia/packages/RecipesPipeline/OXGmH/src/user_recipe.jl:36
 [5] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline ~/.julia/packages/RecipesPipeline/OXGmH/src/RecipesPipeline.jl:70
 [6] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
   @ Plots ~/.julia/packages/Plots/lW9ll/src/plot.jl:209
 [7] #plot#145
   @ ~/.julia/packages/Plots/lW9ll/src/plot.jl:91 [inlined]
 [8] top-level scope
   @ ~/Projects/Proposals/ASKEM/SciMLTutorials.jl/tutorials/DiffEqUncertainty/01-expectation_introduction.jmd.ipynb:2
@djinnome djinnome changed the title Simultaneously using keywords vars and idxs is not supported. Please only use idxs. SciML Tutorial attempts to simultaneously use keywords vars and idxs in Plot, which is not supported. Aug 25, 2022
@djinnome
Copy link
Author

djinnome commented Aug 25, 2022

I am running Julia 1.8 with Plots v1.31.7, DifferentialEquations v7.2.0 and SciMLBase v1.51.1

@ChrisRackauckas
Copy link
Member

It should be idxs and trajectories. This is old.

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