Modified plot4.