Do you want the plot legend labels to be displayed in the order in which the user inputs the labels in the event_id dictionary? If so, then we will have to preserve this order somehow. If not, then we don't need to do anything and the plot legend will be displayed in the random order of the dictionary...