Repair Plot 4 (or more precisely, repair the code and re-construct plot 4)