Real-time plotting script
Updated with plotting script