You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next, we plot our nullclines by using Plot.jl's [`contour` function](https://docs.juliaplots.org/latest/series_types/contour/). Here, we plot the $0$ contour lines (which corresponds to the nullclines) for both the $X$ and $Y$ nullclines. We will plot the steady states using `scatter`. We use the `steady_state_stability` function to [compute steady state stabilities](@ref steady_state_stability) (and use this to determine how to plot the steady state markers).
42
43
```@example nullcline_plotting
43
44
using Plots
44
45
# Plot the nullclines. Line labels added in separate `plot` commands (due to how the `contour` works).
45
46
plt_mesh = 0:0.02:1.25
46
-
contour(plt_mesh, plt_mesh, (x,y) -> get_XY(x,y)[1]; levels = [0.0], lw = 7, la = 0.7, color = 1, cbar=false)
47
-
contour!(plt_mesh, plt_mesh, (x,y) -> get_XY(x,y)[2]; levels = [0.0], lw = 7, la = 0.7, color = 2, cbar=false)
47
+
contour(plt_mesh, plt_mesh, (x,y) -> get_XY(x,y)[1]; levels = [0.0], lw = 7, la = 0.7, color = 1, cbar = false)
48
+
contour!(plt_mesh, plt_mesh, (x,y) -> get_XY(x,y)[2]; levels = [0.0], lw = 7, la = 0.7, color = 2, cbar = false)
48
49
plot!([]; label = "dX/dt = 0", lw = 7, la = 0.7, color = 1)
49
50
plot!([]; label = "dY/dt = 0", lw = 7, la = 0.7, color = 2)
50
51
@@ -61,7 +62,7 @@ scatter!([], []; color = :blue, markershape = :circle, label = "Stable stead sta
0 commit comments