plotting scripts for event processing