Plotting to external file