produce the plot to a png device