ENH: added event_id and legend