realtime plotting of generated function