Plot 1 code functional with PNG plot output