Skip to content

Commit 44cbb34

Browse files
committed
fixed for progammatic -> model implementation
1 parent 4517937 commit 44cbb34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/steady_state_functionality/examples/nullcline_plotting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ end
2626
Next, we compute the steady states [using homotopy continuation](@ref homotopy_continuation).
2727
```@example nullcline_plotting
2828
import HomotopyContinuation
29-
ps = [v => 1.0, K => 0.6, n => 4.0]
29+
ps = [:v => 1.0, :K => 0.6, :n => 4.0]
3030
sss = hc_steady_states(bs_switch, ps; show_progress = false)
3131
```
3232

3333
Finally, we will compute the nullclines. First we create a function which, for species values $(X,Y)$, returns the evaluation of the model's ODE's right-hand side.
3434
```@example nullcline_plotting
35-
nlprob = NonlinearProblem(bs_switch, [X => 0.0, Y => 0.0], ps)
35+
nlprob = NonlinearProblem(bs_switch, [:X => 0.0, :Y => 0.0], ps)
3636
function get_XY(Xval, Yval)
37-
prob = Catalyst.remake(nlprob; u0 = [X => Xval, Y => Yval])
37+
prob = Catalyst.remake(nlprob; u0 = [:X => Xval, :Y => Yval])
3838
return nlprob.f(prob.u0, prob.p)
3939
end
4040
```
@@ -61,7 +61,7 @@ scatter!([], []; color = :blue, markershape = :circle, label = "Stable stead sta
6161
scatter!([], []; color = :red, markershape = :star4, label = "Unstable stead state")
6262
6363
# Finishing touches.
64-
plot!(xlimit = span, ylimit = span, xguide = "X", yguide = "Y", legendfontsize = 10, size = (600,600))
64+
plot!(xguide = "X", yguide = "Y", legendfontsize = 10, size = (600,600))
6565
```
6666
Here we can see how the steady states occur at the nullclines intersections.
6767

0 commit comments

Comments
 (0)