Fix example 41 (#4093)

This commit is contained in:
t-bltg 2022-02-06 22:32:40 +01:00 committed by GitHub
parent 2a7d2d710e
commit 6e4cb5fedc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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