Problems to close plots with StatsPlots library

I am using the StatsPlots library but the plots are getting overwritten. I tried to use clf() function but doen’t work.

x=vcat(V[:D1], V[:D2], V[:D3] ,V[:D4], V[:D5] ,V[:D6])
p1=StatsPlots.ea_histogram(x,title=“NumOcorr”,xlabel=“Num”,ylabel=“Ocorrências”,bins=60)
clf()
StatsPlots.boxplot!(V[:D1])

Use the keyword reuse=false.

PS: quote your code PSA: how to quote code with backticks

1 Like

Thanks,Mauro. I solve the problem removing the ! of boxplot function. I tried reuse=false but the problem remain.