Plot1: corrected code and PNG graphic
Plot2: corrected code and PNG graphic
Plot3: corrected code and PNG graphic
Plot4: code and PNG graphic