@@ -193,7 +193,7 @@ function Catalyst.plot_network(rn::ReactionSystem; kwargs...)
193193 layout = if ! haskey (kwargs, :layout )
194194 Stress ()
195195 end
196- f, ax, p = graphplot (srg;
196+ f = graphplot (srg;
197197 layout,
198198 edge_color = edgecolors,
199199 elabels = edgelabels,
@@ -207,10 +207,10 @@ function Catalyst.plot_network(rn::ReactionSystem; kwargs...)
207207 kwargs...
208208 )
209209
210- ax . xautolimitmargin = (0.15 , 0.15 )
211- ax . yautolimitmargin = (0.15 , 0.15 )
210+ f . axis . xautolimitmargin = (0.15 , 0.15 )
211+ f . axis . yautolimitmargin = (0.15 , 0.15 )
212212
213- f, ax, p
213+ f
214214end
215215
216216"""
@@ -248,7 +248,7 @@ function Catalyst.plot_complexes(rn::ReactionSystem; show_rate_labels = false, k
248248 layout = if ! haskey (kwargs, :layout )
249249 Stress ()
250250 end
251- f, ax, p = graphplot (cg;
251+ f = graphplot (cg;
252252 layout,
253253 edge_color = edgecolors[rxorder],
254254 elabels = show_rate_labels ? edgelabels[rxorder] : [],
@@ -260,10 +260,10 @@ function Catalyst.plot_complexes(rn::ReactionSystem; show_rate_labels = false, k
260260 curve_distance = gen_distances (cg),
261261 kwargs...
262262 )
263- ax . xautolimitmargin = (0.15 , 0.15 )
264- ax . yautolimitmargin = (0.15 , 0.15 )
263+ f . axis . xautolimitmargin = (0.15 , 0.15 )
264+ f . axis . yautolimitmargin = (0.15 , 0.15 )
265265
266- f, ax, p
266+ f
267267end
268268
269269function complexelem_tostr (e:: Catalyst.ReactionComplexElement , specstrs)
0 commit comments