Use subprocess module, allowing wait for gnuplot.