ENH: refactored event_id, colour and legend handling