Is it the kind of interactive plot you are after ?
You can replace the record line by the simple loop if you don’t want to generate a movie.