Plot2: corrected code and PNG graphic