Add a script for real time plot