Continuously plot to the same window on the fly

I have for loop which runs some computation. For debugging, I want to see the output “real-time”. One possible way to do that is continuously plotting add points to the same graph.

using Gaston
for iter=1:100
    res = myProg(...)
    plot!(res) |> display

As shown above, I tried to use Gaston to do this. This seems to work, but the use of plot!(res) |> display seems strange, as I do not see it in the manual of Gaston.

Could anyone comment on this? Or if you have a better way to plot the results on the fly, please let me know. Thank you!

This is discussed in Gaston.jl’s package FAQ.

Thank you! Didn’t know this page, which is exactly what I need.