Skip to content

Commit

Permalink
Fix example 41 (#4093)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Feb 6, 2022
1 parent 2a7d2d7 commit 6e4cb5f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1342,11 +1342,8 @@ function test_examples(pkgname::Symbol, idx::Int; debug = false, disp = true)
Base.eval(m, :(using Plots))
map(exprs -> Base.eval(m, exprs), _examples[idx].exprs)

plt = current()
if disp
gui(plt)
end
plt
disp && Base.eval(m, :(gui(current())))
current()
end

# generate all plots and create a dict mapping idx --> plt
Expand Down

0 comments on commit 6e4cb5f

Please sign in to comment.