Script for creating plot4.png