How to clear or close pyplot figure?

How to clear or close pyplot figure?

Paul

close("all") will close all figures

2 Likes

Thanks,
but after this command new plots ae not displyed :confused:
Is posible clear figure before inserting new plot ?
Paul

W dniu 2019-11-05 o 22:09, Paul Soderlind via JuliaLang pisze:

1 Like

I cannot replicate. The following works well (meaning: the first plot is created and then closed and the second plot is shown) on my machine

using PyPlot
p1 = figure()
plot(1:10)
close(p1)           #or close("all")

figure()
plot(1:100)
1 Like

Big Thanks, works:)
I need it to animate scatter plot in while … Maybe is some special
works to animate Pyplot plots ?
Paul
W dniu 2019-11-06 o 23:15, Paul Soderlind via JuliaLang pisze: