Skip to content

Commit d5308cd

Browse files
committed
fixes
1 parent c018934 commit d5308cd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/src/introduction_to_catalyst/introduction_to_catalyst.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ At this point we are all set to solve the ODEs. We can now use any ODE solver
179179
from within the
180180
[OrdinaryDiffEq.jl](https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/)
181181
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):
183183

184184
```@example tut1
185+
import Plots: plot
185186
sol = solve(oprob, Tsit5(), saveat=10.0)
186187
plot(sol)
187188
```

ext/CatalystGraphMakieExtension/rn_graph_plot.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function gen_distances(g::SRGraphWrap; inc = 0.2)
6060
end
6161

6262
"""
63-
plot_network(rn::ReactionSystem; interactive=false)
63+
plot_network(rn::ReactionSystem)
6464
6565
Converts a [`ReactionSystem`](@ref) into a GraphMakie plot of the species reaction graph
6666
(or Petri net representation). Reactions correspond to small green circles, and
@@ -119,7 +119,7 @@ function Catalyst.plot_network(rn::ReactionSystem)
119119
end
120120

121121
"""
122-
plot_complexes(rn::ReactionSystem; interactive=false)
122+
plot_complexes(rn::ReactionSystem)
123123
124124
Creates a GraphMakie plot of the [`ReactionComplex`](@ref)s in `rn`. Reactions
125125
correspond to arrows and reaction complexes to blue circles.
@@ -147,7 +147,7 @@ function Catalyst.plot_complexes(rn::ReactionSystem)
147147
graphplot(img;
148148
edge_color = edgecolors,
149149
elabels = edgelabels,
150-
ilabels = complexlabels(rn),
150+
ilabels = nodelabels,
151151
node_color = :skyblue3,
152152
elabels_rotation = 0,
153153
arrow_shift = :end,

0 commit comments

Comments
 (0)