Modified plot4 to remove legend border