How to redraw a subplot instead of overlaying, GR

plotting

#1

Hi,

I am trying to fill the subplots of a layout using GR backend

layout = @layout [grid(1,2); grid(1,2); grid(1,1)];
plot(layout=layout)
#draw at position2
plot!(1:10, rand(10), subplot=2)
#want to redraw instead of overlay
plot!(1:10, rand(10), subplot=2, clf=true)
#try couple times
plot!(1:10, rand(10), subplot=2, clf=true)

what should I do to overwrite the single subplot instead of overlaying. Thanks a lot!


#2

You cannot do that with Plots.


#3

If I have already plotted 3 subplots and the 4th one I did something wrong, I have to redo everything? Or are there any better way? Thank you for helping