Simplified the example a lot. The real-time plot remains