Because the Plots package is a dependency of MultipleScattering.Plots, we cannot precompile the whole MultipleScattering package even though it would make loadup much faster. Instead of using the Plots package, we are really supposed to use the RecipesBase which adds recipes (or methods) to the plots function. It would also allow us to just call plot(model) and the recipe would be used.
Because the Plots package is a dependency of MultipleScattering.Plots, we cannot precompile the whole MultipleScattering package even though it would make loadup much faster. Instead of using the Plots package, we are really supposed to use the RecipesBase which adds recipes (or methods) to the plots function. It would also allow us to just call
plot(model)
and the recipe would be used.Recipe docs