File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
docs/src/introduction_to_catalyst
ext/CatalystGraphMakieExtension Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,10 @@ At this point we are all set to solve the ODEs. We can now use any ODE solver
179
179
from within the
180
180
[ OrdinaryDiffEq.jl] ( https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/ )
181
181
package. We'll use the recommended default explicit solver, ` Tsit5() ` , and then
182
- plot the solutions:
182
+ plot the solutions (we have imported ` plot ` to avoid ambiguity with GLMakie) :
183
183
184
184
``` @example tut1
185
+ import Plots: plot
185
186
sol = solve(oprob, Tsit5(), saveat=10.0)
186
187
plot(sol)
187
188
```
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ function gen_distances(g::SRGraphWrap; inc = 0.2)
60
60
end
61
61
62
62
"""
63
- plot_network(rn::ReactionSystem; interactive=false )
63
+ plot_network(rn::ReactionSystem)
64
64
65
65
Converts a [`ReactionSystem`](@ref) into a GraphMakie plot of the species reaction graph
66
66
(or Petri net representation). Reactions correspond to small green circles, and
@@ -119,7 +119,7 @@ function Catalyst.plot_network(rn::ReactionSystem)
119
119
end
120
120
121
121
"""
122
- plot_complexes(rn::ReactionSystem; interactive=false )
122
+ plot_complexes(rn::ReactionSystem)
123
123
124
124
Creates a GraphMakie plot of the [`ReactionComplex`](@ref)s in `rn`. Reactions
125
125
correspond to arrows and reaction complexes to blue circles.
@@ -147,7 +147,7 @@ function Catalyst.plot_complexes(rn::ReactionSystem)
147
147
graphplot (img;
148
148
edge_color = edgecolors,
149
149
elabels = edgelabels,
150
- ilabels = complexlabels (rn) ,
150
+ ilabels = nodelabels ,
151
151
node_color = :skyblue3 ,
152
152
elabels_rotation = 0 ,
153
153
arrow_shift = :end ,
You can’t perform that action at this time.
0 commit comments