SciML / SciMLTutorials.jl

Tutorials for doing scientific machine learning (SciML) and high-performance differential equation solving with open source software.
https://tutorials.sciml.ai
Other
712 stars 128 forks source link

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

Open djinnome opened 1 year ago

djinnome commented 1 year ago

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

https://github.com/SciML/SciMLTutorials.jl/blob/e8c8c3e51703fd08b874abbbc7b52ed895d0cb6f/tutorials/DiffEqUncertainty/01-expectation_introduction.jmd#L48

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 commented 1 year ago

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

ChrisRackauckas commented 1 year ago

It should be idxs and trajectories. This is old.