Added legend to plots