Added methods for inserting a legend and changing plot colors