PLOTS_DEFAULTS and removed pyplot finalizer
This commit is contained in:
parent
9d25c8fcd4
commit
1140b51e91
@ -243,7 +243,9 @@ function __init__()
|
|||||||
setup_atom()
|
setup_atom()
|
||||||
|
|
||||||
if haskey(ENV, "PLOTS_DEFAULTS")
|
if haskey(ENV, "PLOTS_DEFAULTS")
|
||||||
default(; ENV["PLOTS_DEFAULTS"]...)
|
for (k,v) in eval(parse(ENV["PLOTS_DEFAULTS"]))
|
||||||
|
default(k, v)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -341,8 +341,9 @@ function _create_backend_figure(plt::Plot{PyPlotBackend})
|
|||||||
fig = if plt[:overwrite_figure]
|
fig = if plt[:overwrite_figure]
|
||||||
PyPlot.gcf()
|
PyPlot.gcf()
|
||||||
else
|
else
|
||||||
PyPlot.figure()
|
fig = PyPlot.figure()
|
||||||
finalizer(fig, close)
|
# finalizer(fig, close)
|
||||||
|
fig
|
||||||
end
|
end
|
||||||
|
|
||||||
# clear the figure
|
# clear the figure
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user