improve eventplot