Color coding rays and times by events in plots