plot2 & plot3, refactor with png device