Plot generating codes and png files