You'll also have to
print IN "\nexit\n"; [download]
In reply to Re: gnuplot output to tkcanvas by Anonymous Monk in thread gnuplot output to tkcanvas by tallulah