Changed plot4 to improve legend