Skip to content

Commit

Permalink
Resolve points when plotting Codim2Solver
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jul 13, 2018
1 parent 053bd79 commit 55b067e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/examples/bazykin_85.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Merge continuations and draw the bifurcation diagram:
plt2 = plot()
for s in codim2_solvers
n = length(s.sol.sweeps[1].super.u[1])
plot!(plt2, s.sol, vars=(n - 1, n))
plot!(plt2, s, vars=(n - 1, n))
end
savefig(plt2, "bazykin85-2.png"); nothing # hide
```
Expand Down
3 changes: 2 additions & 1 deletion src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ function plot!(plt,
BifurcationSolution,
BifurcationSolver},
args...;
resolve_points = plottable isa Codim1Solver,
resolve_points = plottable isa Union{Codim1Solver,
Codim2Solver},
include_points = true,
vars = length(args) > 0 ? nothing : default_vars(plottable),
bif_style = STYLE,
Expand Down

0 comments on commit 55b067e

Please sign in to comment.