Skip to content

Commit 7932ff4

Browse files
committed
remove statsplots
1 parent 5abb048 commit 7932ff4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
4040
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
4141
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
4242
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
43-
StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd"
4443
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
4544
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
4645
StructuralIdentifiability = "220ca800-aa68-49bb-acd8-6037fa93a544"
@@ -87,7 +86,6 @@ SciMLBase = "2.46"
8786
SciMLSensitivity = "7.60"
8887
SpecialFunctions = "2.4"
8988
StaticArrays = "1.9"
90-
StatsPlots = "0.15.7"
9189
SteadyStateDiffEq = "2.2"
9290
StochasticDiffEq = "6.65"
9391
StructuralIdentifiability = "0.5.11"

docs/src/model_simulation/examples/activation_time_distribution_measurement.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ eprob = EnsembleProblem(sprob; output_func, safetycopy = true)
4545
esol = solve(eprob, ImplicitEM(); trajectories = 250, callback)
4646
nothing # hide
4747
```
48-
Finally, we can plot the distribution of activation times. For this, we will use the [StatsPlots.jl](https://docs.juliaplots.org/latest/generated/statsplots/) package's `density` function (essentially a smoothed histogram). The input to `density` is the activation times (which our output function has saved to `esol.u`).
48+
Finally, we can plot the distribution of activation times. For this, we will use the [`histogram`](@ref https://docs.juliaplots.org/latest/series_types/histogram/) function (with the `normalize = true` argument to create a probability density function). An alternative we also recommend is [StatsPlots.jl](https://docs.juliaplots.org/latest/generated/statsplots/)'s `density` function (which creates a smoothed histogram that is also easier to combine with other plots). The input to `density` is the activation times (which our output function has saved to `esol.u`).
4949
```@example activation_time_distribution_measurement
50-
using StatsPlots
51-
density(esol.u; label = "Activation time distribution", xlabel = "Activation time")
50+
histogram(esol.u; normalize = true, label = "Activation time distribution", xlabel = "Activation time")
5251
```
5352
Here we that the activation times take some form of long tail distribution (for non-trivial models like this one, it is generally not possible to identify the activation times as any known statistical distribution).
5453

0 commit comments

Comments
 (0)